Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Pole-Web
Website
Commits
0d6ffd87
Commit
0d6ffd87
authored
Sep 05, 2021
by
HEVELINE Thomas
Browse files
réparation TU
parent
6b70e76a
Changes
1
Hide whitespace changes
Inline
Side-by-side
boutique/tests/test_views.py
View file @
0d6ffd87
...
...
@@ -88,7 +88,7 @@ class ItemListViewTest(ItemTestCase, UserTestCase):
self
.
assertContains
(
resp
,
shown_item
.
name
)
self
.
assertContains
(
resp
,
no_bargain_item
.
name
)
self
.
assertNotContains
(
resp
,
hidden_item
.
name
)
self
.
assertContains
(
resp
,
"prix cotisant
:
"
)
self
.
assertContains
(
resp
,
"prix cotisant"
)
# Logged in, not contributor
self
.
client
.
force_login
(
self
.
user
)
...
...
@@ -96,7 +96,7 @@ class ItemListViewTest(ItemTestCase, UserTestCase):
self
.
assertContains
(
resp
,
shown_item
.
name
)
self
.
assertContains
(
resp
,
no_bargain_item
.
name
)
self
.
assertNotContains
(
resp
,
hidden_item
.
name
)
self
.
assert
Not
Contains
(
resp
,
"prix cotisant"
)
self
.
assertContains
(
resp
,
"prix cotisant"
)
# Logged in, contributor
self
.
client
.
force_login
(
self
.
contributor_user
)
...
...
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