From 359813517e3382c527125fe673fa89f0fd0742c0 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Mon, 7 Jun 2021 13:52:20 +0530 Subject: added docstrings --- app/tests/test_forms.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'app/tests/test_forms.py') diff --git a/app/tests/test_forms.py b/app/tests/test_forms.py index 1a26635..0f772b3 100644 --- a/app/tests/test_forms.py +++ b/app/tests/test_forms.py @@ -1,4 +1,13 @@ +# -*- coding: utf-8 -*- +""" +Test(s) for Forms + +Tests the forms and their validations +""" def test_incorrect_forms(app, client): + """ + Simulate Invalid Forms + """ res = client.post("/signin", data={"email": "123"}) assert b"This field is required." in res.data @@ -10,6 +19,7 @@ def test_incorrect_forms(app, client): def test_contactus(app, client): + """Test Valid Form Submission""" res = client.post( "/ContactUs", data={ -- cgit v1.2.3