This commit is contained in:
Ojakoo
2022-12-24 20:59:07 +02:00
parent 3ac5400b79
commit c6f0f4615b
2 changed files with 11 additions and 8 deletions
+5 -5
View File
@@ -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:
+6 -3
View File
@@ -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)