From 1e05c5d886259ac21607f4564733436f3a946a36 Mon Sep 17 00:00:00 2001 From: Helldragon67 Date: Sat, 14 Dec 2024 16:54:55 +0100 Subject: [PATCH] smarter tests --- backend/src/tests/test_toilets.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/src/tests/test_toilets.py b/backend/src/tests/test_toilets.py index 89f71a5..29d9f06 100644 --- a/backend/src/tests/test_toilets.py +++ b/backend/src/tests/test_toilets.py @@ -75,8 +75,6 @@ def test_no_toilets(client, location, status_code): # pylint: disable=redefin "location,status_code", [ ([45.7576485, 4.8330241], 200), # Lyon, Bellecour. - ([40.768502, -73.958408], 200), # New York, Upper East Side. - ([53.482864, -2.2411116], 200), # Manchester, centre. ([-6.913795, 107.60278], 200), # Bandung, train station ([-22.970140, -43.18181], 200), # Rio de Janeiro, Copacabana ] @@ -92,7 +90,8 @@ def test_toilets(client, location, status_code): # pylint: disable=redefined- response = client.post( "/toilets/new", params={ - "location": location + "location": location, + "radius" : 600 } ) toilets_list = [Toilets.model_validate(toilet) for toilet in response.json()]