1
0
Fork 0

fix name collision

This commit is contained in:
Mateusz Konieczny 2025-02-01 12:17:26 +01:00
parent dade2427b9
commit 64e976a00d

View file

@ -160,7 +160,7 @@ class ProcessingTests(unittest.TestCase):
self.assertNotEqual(qa.remove_bad_data(ProcessingTests.merge(sample, {}), 'atp_code'), None)
def test_hidden_closure_note_results_in_skipped_entry_upcoming_opening_mentioned_in_address_field(self):
def test_hidden_closure_note_results_in_skipped_entry_upcoming_opening_mentioned_in_address_field_variant_a(self):
# https://github.com/alltheplaces/alltheplaces/issues/11868
sample = {'amenity': 'car_rental', 'brand': 'Hertz', 'name': 'Hertz', 'atp_listing_name': 'Hertz', 'addr:full': '896 Burwood Highway<UL><LI><STRONG><I>Grand Opening 14th February, 2025 - Book now!</I></STRONG></UL></LI>'}
self.assertEqual(qa.remove_bad_data(ProcessingTests.merge(sample, {}), 'atp_code'), None)
@ -168,7 +168,7 @@ class ProcessingTests(unittest.TestCase):
self.assertNotEqual(qa.remove_bad_data(ProcessingTests.merge(sample, {}), 'atp_code'), None)
def test_hidden_closure_note_results_in_skipped_entry_upcoming_opening_mentioned_in_address_field(self):
def test_hidden_closure_note_results_in_skipped_entry_upcoming_opening_mentioned_in_address_field_variant_b(self):
# https://github.com/alltheplaces/alltheplaces/issues/11868
sample = {'amenity': 'car_rental', 'brand': 'Hertz', 'name': 'Hertz', 'atp_listing_name': 'Hertz', 'addr:full': '20 Commercial Drive<UL><LI><STRONG><I>Hertz Wallan opens 02 Jan, 2025</I></STRONG></UL></LI>'}
self.assertEqual(qa.remove_bad_data(ProcessingTests.merge(sample, {}), 'atp_code'), None)