aboutsummaryrefslogtreecommitdiff
path: root/app/tests/test_forms.py
diff options
context:
space:
mode:
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={