Commit 2ad327a6 authored by okhin's avatar okhin 🚴

If no tags are given, we maintain them

parent 47a7eedf
Pipeline #2628 passed with stages
in 3 minutes and 6 seconds
......@@ -256,8 +256,8 @@ class TestArticleApi(TestCase):
# Need to test if we keep the tags
r = self.client.post('/api/articles/',
{'url': a.url, 'title': a.title,
'tags': ''
})
},
format='json')
assert list(a.tags.all().values('name')) == [json.loads(t) for t in r.data['tags']]
def test_api_recover(self):
......
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