Event POST unauthorized test
This commit is contained in:
@@ -146,14 +146,21 @@ class EventTestCase(APITestCase):
|
|||||||
response = self.client.post(
|
response = self.client.post(
|
||||||
"/api/events/",
|
"/api/events/",
|
||||||
{
|
{
|
||||||
"tags": "Test",
|
"tags": [self.testTagId],
|
||||||
"visible": "Testinimi",
|
"tag_id": [self.testTagId],
|
||||||
"title_fi": "Testinimi",
|
"visible": True,
|
||||||
"title_en": "Test name",
|
"title": "POST Testi",
|
||||||
"description_fi": self.icon,
|
# "title_fi": "POST Testi",
|
||||||
"description_en": self.icon,
|
# "title_en": "POST Test",
|
||||||
"content_fi": self.icon,
|
"description": "ABC",
|
||||||
"content_en": self.icon,
|
# "description_fi": "ABC",
|
||||||
|
# "description_en": "CBA",
|
||||||
|
"content": "Benis",
|
||||||
|
# "content_fi": "Benis",
|
||||||
|
# "content_en": "Bensels :DDD",
|
||||||
|
"start_time": timezone.now(),
|
||||||
|
"end_time": timezone.now(),
|
||||||
|
"signup_id": []
|
||||||
},
|
},
|
||||||
format='json'
|
format='json'
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user