Skip to content

Commit 01a60d3

Browse files
author
Wout Feys
committed
flask mongo, print results, and check for text message
1 parent 27e6d5e commit 01a60d3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

end2end/flask_mongo_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,15 @@ def test_create_dog_fw():
1212
dog_name = "bobby_tables"
1313
pswd = "bobby123"
1414
res = requests.post(post_url_fw, data={'dog_name': dog_name, 'pswd': pswd})
15+
print(res.text)
16+
assert "created successfully" in res.text
1517
assert res.status_code == 200
1618
def test_create_dog_no_fw():
1719
dog_name = "bobby_tables"
1820
pswd = "bobby123"
1921
res = requests.post(post_url_nofw, data={'dog_name': dog_name, 'pswd': pswd})
22+
print(res.text)
23+
assert "created successfully" in res.text
2024
assert res.status_code == 200
2125

2226
# Auth dogs with right password:

0 commit comments

Comments
 (0)