-def test_postcodes_multi_country(dsn, placex_table, postcode_table, tmp_path, tokenizer):
- placex_table.add(country='de', geom='POINT(10 12)',
- address=dict(postcode='54451'))
- placex_table.add(country='cc', geom='POINT(100 56)',
- address=dict(postcode='DD23 T'))
- placex_table.add(country='de', geom='POINT(10.3 11.0)',
- address=dict(postcode='54452'))
- placex_table.add(country='cc', geom='POINT(10.3 11.0)',
- address=dict(postcode='54452'))
+def test_postcodes_multi_country(dsn, placex_table, postcode_table,
+ place_row, tmp_path, tokenizer):
+ placex_table.add(country='de', geom='POINT(10 12)')
+ place_row(geom='SRID=4326;POINT(10 12)', address=dict(postcode='54451'))
+
+ placex_table.add(country='cc', geom='POINT(100 56)')
+ place_row(geom='SRID=4326;POINT(100 56)', address=dict(postcode='DD23 T'))
+
+ placex_table.add(country='de', geom='POINT(10.3 11.0)')
+ place_row(geom='SRID=4326;POINT(10.3 11.0)', address=dict(postcode='54452'))
+
+ placex_table.add(country='cc', geom='POINT(10.3 10.0)')
+ place_row(geom='SRID=4326;POINT(10.3 10.0)', address=dict(postcode='54452'))