From c6f0f4615bdaba4f27193fc6480f7a3526ab9ddc Mon Sep 17 00:00:00 2001 From: Ojakoo Date: Sat, 24 Dec 2022 20:59:07 +0200 Subject: [PATCH] lint --- README.md | 10 +++++----- webapp/tests/test_event.py | 9 ++++++--- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 0d261bb..c6561e9 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,11 @@ [Django](https://www.djangoproject.com/) backend containing multiple small applications and api for Next.js frontend. -* **Web app:** Backend for the main website. -* **Member register:** Data table app for viewing and modifying the member register, member applications and membership payments. -* **Kaehmy:** Form for creating and listing kaehmys -* **Ohlhafv:** Form for creating and listing ohlhafv challenges. -* **Infoscreen:** Angular-based slideshow app for the guild room's screens. +* **Web app:** Backend for the main website. +* **Member register:** Data table app for viewing and modifying the member register, member applications and membership payments. +* **Kaehmy:** Form for creating and listing kaehmys +* **Ohlhafv:** Form for creating and listing ohlhafv challenges. +* **Infoscreen:** Angular-based slideshow app for the guild room's screens. ## Installation Set up your SSH key authentication in GitLab Profile Settings. Then clone the repository and checkout the development branch: diff --git a/webapp/tests/test_event.py b/webapp/tests/test_event.py index 2f094f0..be8df60 100644 --- a/webapp/tests/test_event.py +++ b/webapp/tests/test_event.py @@ -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)