[themotte/rDrama#451] Fixture fixes
This commit is contained in:
parent
7d12ddc89e
commit
9c1e247685
2 changed files with 2 additions and 2 deletions
|
@ -15,12 +15,12 @@ class CommentsFixture:
|
|||
assert submit_get_response.status_code == 200
|
||||
comment_body = data.get('body', util.generate_text())
|
||||
submit_comment_response = client.post("/comment", data={
|
||||
**data,
|
||||
"parent_fullname": f't2_{post_id}',
|
||||
'parent_level': 1,
|
||||
'submission': post_id,
|
||||
"body": comment_body,
|
||||
"formkey": util.formkey_from(submit_get_response.text),
|
||||
**data,
|
||||
})
|
||||
assert submit_comment_response.status_code == 200
|
||||
submit_comment_data = json.loads(submit_comment_response.text)
|
||||
|
|
|
@ -14,10 +14,10 @@ class SubmissionsFixture:
|
|||
post_title = data.get('title', util.generate_text())
|
||||
post_body = data.get('body', util.generate_text())
|
||||
submit_post_response = client.post("/submit", data={
|
||||
**data,
|
||||
"title": post_title,
|
||||
"body": post_body,
|
||||
"formkey": util.formkey_from(submit_get_response.text),
|
||||
**data,
|
||||
})
|
||||
assert submit_post_response.status_code == 200
|
||||
assert post_title in submit_post_response.text
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue