MCPcopy
hub / github.com/liangliangyy/DjangoBlog / update_article_comment_status

Method update_article_comment_status

comments/tests.py:27–31  ·  view source on GitHub ↗
(self, article)

Source from the content-addressed store, hash-verified

25 password="liangliangyy1")
26
27 def update_article_comment_status(self, article):
28 comments = article.comment_set.all()
29 for comment in comments:
30 comment.is_enable = True
31 comment.save()
32
33 def test_validate_comment(self):
34 self.client.login(username='liangliangyy1', password='liangliangyy1')

Callers 1

test_validate_commentMethod · 0.95

Calls 1

saveMethod · 0.45

Tested by

no test coverage detected