Commit 6736c0b8 authored by okhin's avatar okhin 🚴

Testing that update works

parent acd7adfd
......@@ -86,6 +86,13 @@ class TestArticle(TestCase):
assert self.newarticle.speak
assert self.newarticle.quote
def test_update(self):
old_title = self.article.title
self.article.title = old_title[::-1]
self.article.save()
self.article.refresh_from_db()
assert self.article.title != old_title
class TestArticleViews(TestCase):
def setUp(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