lint
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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