Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AE UTBM
Sith
Commits
e9c19438
Commit
e9c19438
authored
Nov 08, 2016
by
Skia
🤘
Browse files
Fix tests and CI
parent
321dead0
Pipeline
#375
failed with stage
in 2 minutes and 50 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
e9c19438
test
:
script
:
-
pip install -r requirements.txt
-
python manage.py compilemessages
-
python manage.py test
club/tests.py
View file @
e9c19438
...
...
@@ -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
(
"<li>
Y
ou
do not have the permission to do that
</li>"
in
str
(
response
.
content
))
self
.
assertTrue
(
"<li>
V
ou
s n'avez pas la permission de faire cela
</li>"
in
str
(
response
.
content
))
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment