lint
This commit is contained in:
@@ -15,10 +15,11 @@ URL = "/api/events/"
|
||||
|
||||
class EventTestCase(APITestCase):
|
||||
def setUp(self):
|
||||
tz=zoneinfo.ZoneInfo(key='Europe/Helsinki')
|
||||
tz = zoneinfo.ZoneInfo(key="Europe/Helsinki")
|
||||
# Visible and relevant
|
||||
test1 = createEventObject(
|
||||
"Testitapahtuma1", start_time=timezone.datetime(2019, 11, 9, 12, 0, 0, tzinfo=tz)
|
||||
"Testitapahtuma1",
|
||||
start_time=timezone.datetime(2019, 11, 9, 12, 0, 0, tzinfo=tz),
|
||||
)
|
||||
# Invisible but relevant
|
||||
createEventObject(
|
||||
@@ -79,7 +80,9 @@ class EventTestCase(APITestCase):
|
||||
self.assertEqual(response.data["results"], expected)
|
||||
|
||||
def test_get_events_since(self):
|
||||
response = self.client.get(f"{URL}?since=2018-01-01%2000:00:00%2B0200", format="json")
|
||||
response = self.client.get(
|
||||
f"{URL}?since=2018-01-01%2000:00:00%2B0200", format="json"
|
||||
)
|
||||
self.assertTrue(response.status_code, status.HTTP_200_OK)
|
||||
self.assertEqual(len(response.data["results"]), 3)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user