From e9c19438d474bb259af486207276528a0b5c0195 Mon Sep 17 00:00:00 2001 From: Skia Date: Tue, 8 Nov 2016 19:07:25 +0100 Subject: [PATCH] Fix tests and CI --- .gitlab-ci.yml | 1 + club/tests.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4933c51c..b9f20e12 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,5 @@ test: script: - pip install -r requirements.txt + - python manage.py compilemessages - python manage.py test diff --git a/club/tests.py b/club/tests.py index e20a0ba0..d8ee12d2 100644 --- a/club/tests.py +++ b/club/tests.py @@ -54,5 +54,5 @@ class ClubTest(TestCase): 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}) self.assertTrue(response.status_code == 200) - self.assertTrue("
  • You do not have the permission to do that
  • " in str(response.content)) + self.assertTrue("
  • Vous n'avez pas la permission de faire cela
  • " in str(response.content))