Adding features to find public toilets and shopping streets #41

Merged
kscheidecker merged 21 commits from feature/backend/toilets-and-shopping-streets into main 2024-12-14 15:57:09 +00:00
Showing only changes of commit 1e05c5d886 - Show all commits

View File

@ -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()]