@@ -244,7 +244,7 @@ def test_schools_json_exposes_lat_and_lon(self, client, db):
244
244
# Arrange
245
245
school = SchoolFactory (
246
246
id = f"NW-100010" ,
247
- location = "SRID=4326;POINT(50.94217152830834 6.897017373118707)" ,
247
+ location = "SRID=4326;POINT(6.897017373118707 50.94217152830834 )" ,
248
248
name = "Gymnasium Claudia Agrippina Privat schule als priv.Ersatzsch. d. Sek.I u.II im Aufbau d. CAPS Privatschu gGmbH" ,
249
249
address = "Stolberger Str. 112" ,
250
250
)
@@ -268,15 +268,15 @@ def test_schools_ordered_by_distance(self, client, db):
268
268
# Arrange
269
269
for school in [
270
270
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" )
274
274
]:
275
275
db .add (school )
276
276
db .commit ()
277
277
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" )
280
280
281
281
# Assert
282
282
assert response .status_code == 200
0 commit comments