From 83519ef02adc06f37c389ffba4290f17530fd146 Mon Sep 17 00:00:00 2001 From: Kai Michael Poppe Date: Tue, 24 Sep 2024 09:22:27 +0200 Subject: [PATCH] Update test_views.py to include radius parameter --- osmcal/test_views.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/osmcal/test_views.py b/osmcal/test_views.py index 0345041..63681b0 100644 --- a/osmcal/test_views.py +++ b/osmcal/test_views.py @@ -2,18 +2,12 @@ class EventListTest(TestCase): - def test_location_out_of_range_low(self): + def test_location_out_of_range(self): # Based on Sentry report OSM-CALENDAR-1W c = Client() resp = c.get("/events.ics?around=5564") # The around parameter obviously doesn't make any sense. self.assertEqual(resp.status_code, 400) - def test_location_out_of_range_high(self): - # Based on Sentry report OSM-CALENDAR-1W - c = Client() - resp = c.get("/events.ics?around=55,13,5,1") # The around parameter obviously doesn't make any sense. - self.assertEqual(resp.status_code, 400) - def test_location_around_50k(self): c = Client() resp = c.get("/events.ics?around=52,13") @@ -21,5 +15,5 @@ def test_location_around_50k(self): def test_location_around_dist(self): c = Client() - resp = c.get("/events.ics?around=52,13,5") + resp = c.get("/events.ics?around=52,13&around_radius=5") self.assertEqual(resp.status_code, 200)