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
La Quadrature du Net
rpteam
Revue de Press
Commits
930758a5
Commit
930758a5
authored
Jul 10, 2019
by
Okhin
Browse files
Slightly improving the tag merging test
parent
3ef47c09
Pipeline
#2644
passed with stages
in 3 minutes and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
apps/rp/tests/test_article.py
View file @
930758a5
...
...
@@ -216,7 +216,7 @@ class TestArticleViews(TestCase):
a
=
Article
.
objects
.
get
(
pk
=
pk
)
assert
r
.
status_code
==
302
# We're redirecting to the view or preview of the article
assert
a
.
title
==
'Zog Zog'
assert
set
(
a
.
tags
.
names
())
==
{
"merged tag"
}
assert
set
(
a
.
tags
.
names
())
==
set
(
self
.
articles
[
0
].
tags
.
names
())
|
{
"merged tag"
}
class
TestArticleApi
(
TestCase
):
...
...
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