diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2021-06-06 15:49:56 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2021-06-06 15:49:56 +0530 |
commit | 812220acbfd41aea0382fcd9a37a989a4b091d66 (patch) | |
tree | 0f4277216efe81e6b8d21d9dfc39a3d343fac48e /app/tests/test_forms.py | |
parent | ad92a42e8439337cfde346fa84e75a5f91164eac (diff) | |
parent | 62a5ca363415b0f6f98785b6c3522a71fc895a72 (diff) |
fixing pull
Diffstat (limited to 'app/tests/test_forms.py')
-rw-r--r-- | app/tests/test_forms.py | 37 |
1 files changed, 21 insertions, 16 deletions
diff --git a/app/tests/test_forms.py b/app/tests/test_forms.py index 2da2c36..1a26635 100644 --- a/app/tests/test_forms.py +++ b/app/tests/test_forms.py @@ -1,19 +1,24 @@ -def test_incorrect_forms(app,client): - res = client.post("/signin",data={"email":"123"}) - assert b"This field is required." in res.data +def test_incorrect_forms(app, client): + res = client.post("/signin", data={"email": "123"}) + assert b"This field is required." in res.data - res = client.post("/signup",data={"email":"123"}) - assert b"This field is required." in res.data + res = client.post("/signup", data={"email": "123"}) + assert b"This field is required." in res.data - res = client.post("/ContactUs",data={"email":123}) - assert b"This field is required." in res.data + res = client.post("/ContactUs", data={"email": 123}) + assert b"This field is required." in res.data -def test_contactus(app,client): - res = client.post("/ContactUs",data={ - "name": "Test User", - "subject": "Test Contact", - "email": "testemail@email.com", - "body": "Test Message" - }, follow_redirects=True) - assert res.status_code == 200 - assert b"Wuhu" in res.data
\ No newline at end of file + +def test_contactus(app, client): + res = client.post( + "/ContactUs", + data={ + "name": "Test User", + "subject": "Test Contact", + "email": "testemail@email.com", + "body": "Test Message", + }, + follow_redirects=True, + ) + assert res.status_code == 200 + assert b"Wuhu" in res.data |