Commit 930758a5 authored by okhin's avatar okhin 🚴

Slightly improving the tag merging test

parent 3ef47c09
Pipeline #2644 passed with stages
in 3 minutes and 45 seconds
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment