mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 14:13:21 +00:00
Fix tests and CI
This commit is contained in:
parent
321dead0de
commit
e9c19438d4
@ -1,4 +1,5 @@
|
|||||||
test:
|
test:
|
||||||
script:
|
script:
|
||||||
- pip install -r requirements.txt
|
- pip install -r requirements.txt
|
||||||
|
- python manage.py compilemessages
|
||||||
- python manage.py test
|
- python manage.py test
|
||||||
|
@ -54,5 +54,5 @@ class ClubTest(TestCase):
|
|||||||
self.client.login(username='rbatsbak', password='plop')
|
self.client.login(username='rbatsbak', password='plop')
|
||||||
response = self.client.post(reverse("club:club_members", kwargs={"club_id":self.bdf.id}), {"user": self.skia.id, "role": 10})
|
response = self.client.post(reverse("club:club_members", kwargs={"club_id":self.bdf.id}), {"user": self.skia.id, "role": 10})
|
||||||
self.assertTrue(response.status_code == 200)
|
self.assertTrue(response.status_code == 200)
|
||||||
self.assertTrue("<li>You do not have the permission to do that</li>" in str(response.content))
|
self.assertTrue("<li>Vous n'avez pas la permission de faire cela</li>" in str(response.content))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user