Skip to content

Commit bdcf412

Browse files
committed
Adapt tests for lat/lon fix
1 parent d2b13d5 commit bdcf412

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/test_api.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def test_schools_json_exposes_lat_and_lon(self, client, db):
244244
# Arrange
245245
school = SchoolFactory(
246246
id=f"NW-100010",
247-
location="SRID=4326;POINT(50.94217152830834 6.897017373118707)",
247+
location="SRID=4326;POINT(6.897017373118707 50.94217152830834)",
248248
name="Gymnasium Claudia Agrippina Privat schule als priv.Ersatzsch. d. Sek.I u.II im Aufbau d. CAPS Privatschu gGmbH",
249249
address="Stolberger Str. 112",
250250
)
@@ -268,15 +268,15 @@ def test_schools_ordered_by_distance(self, client, db):
268268
# Arrange
269269
for school in [
270270
SchoolFactory.create(location=None, id="BB-0"),
271-
SchoolFactory.create(location='SRID=4326;POINT(52.00 13.00)', id="BB-1"),
272-
SchoolFactory.create(location='SRID=4326;POINT(50.00 11.00)', id="BB-2"),
273-
SchoolFactory.create(location='SRID=4326;POINT(50.00 10.00)', id="BB-3")
271+
SchoolFactory.create(location='SRID=4326;POINT(13.00 52.00)', id="BB-1"),
272+
SchoolFactory.create(location='SRID=4326;POINT(11.00 50.00)', id="BB-2"),
273+
SchoolFactory.create(location='SRID=4326;POINT(10.00 50.00)', id="BB-3")
274274
]:
275275
db.add(school)
276276
db.commit()
277277

278-
# Act?by_lat=52.00&by_lon=9.99&limit=1"t
279-
response = client.get("/schools?by_lat=52.00&by_lon=9.99&limit=1")
278+
# Act
279+
response = client.get("/schools?by_lat=9.99&by_lon=52.00&limit=1")
280280

281281
# Assert
282282
assert response.status_code == 200

0 commit comments

Comments
 (0)