move postcode matcher in a separate file

This commit is contained in:
Sarah Hoffmann
2022-06-06 23:37:04 +02:00
parent bf86b45178
commit 80ea13437d
5 changed files with 103 additions and 73 deletions

View File

@@ -437,13 +437,6 @@ class TestPlaceAddress:
assert word_table.get_postcodes() == {pcode, }
@pytest.mark.parametrize('pcode', ['12:23', 'ab;cd;f', '123;836'])
def test_process_place_bad_postcode(self, word_table, pcode):
self.process_address(postcode=pcode)
assert not word_table.get_postcodes()
@pytest.mark.parametrize('hnr', ['123a', '1', '101'])
def test_process_place_housenumbers_simple(self, hnr, getorcreate_hnr_id):
info = self.process_address(housenumber=hnr)