aboutsummaryrefslogtreecommitdiff
path: root/app/tests/test_forms.py
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2021-06-07 13:52:20 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2021-06-07 13:52:20 +0530
commit359813517e3382c527125fe673fa89f0fd0742c0 (patch)
tree5010e2427cf0d19e7365e44fac40612375c135c9 /app/tests/test_forms.py
parentb752efffe410c9cc9cd53f8c50a5fb9f75069e93 (diff)
added docstrings
Diffstat (limited to 'app/tests/test_forms.py')
-rw-r--r--app/tests/test_forms.py10
1 files changed, 10 insertions, 0 deletions
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={