We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50e75b7 commit 1bd2b15Copy full SHA for 1bd2b15
tests/test_post.py
@@ -22,7 +22,7 @@ def setup(self):
22
def test_create(self):
23
24
category = Category.objects.first()
25
- url = url_for('home.create')
+ url = url_for('home.create_topic')
26
form = {
27
'title': '标题',
28
'content': '内容喜喜喜喜喜喜',
@@ -43,10 +43,10 @@ def test_detail(self):
43
44
def test_comment(self):
45
post = Post.objects.first()
46
- url = url_for('post.detail', id=post.id)
+ url = url_for('home.create_comment')
47
48
'content': '评论测试',
49
- 'ref_id': 0,
+ 'ref_id': post.id,
50
}
51
self.client.post(url, data=form, follow_redirects=False)
52
post.reload()
0 commit comments