aboutsummaryrefslogtreecommitdiff
path: root/test/requests/test-website.py
diff options
context:
space:
mode:
authorMuriithi Frederick Muriuki2018-03-14 02:16:59 +0300
committerPjotr Prins2018-03-26 09:29:29 +0000
commit8ff3dbd9bd5737b6cd0df8d279a70073c40786ec (patch)
treea901eef0aa6903305baf6317267946827ae6fa6b /test/requests/test-website.py
parentdd5ec1d3080b74fa065620f6915eeacf2cca8a2d (diff)
downloadgenenetwork2-8ff3dbd9bd5737b6cd0df8d279a70073c40786ec.tar.gz
Add tests for main web functionality
Diffstat (limited to 'test/requests/test-website.py')
-rwxr-xr-xtest/requests/test-website.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/requests/test-website.py b/test/requests/test-website.py
index 9637b87f..f65c3fc8 100755
--- a/test/requests/test-website.py
+++ b/test/requests/test-website.py
@@ -4,6 +4,7 @@
#
# Mostly to pick up the Guix GN2_PROFILE and python modules
from __future__ import print_function
+from main_web_functionality import check_main_web_functionality
from link_checker import check_links
import argparse
@@ -12,6 +13,7 @@ print("Mechanical Rob firing up...")
def run_all(args_obj, parser):
print("")
print("Running all tests.")
+ check_main_web_functionality(args_obj, parser)
check_links(args_obj, parser)
# TODO: Add other functions as they are created.
@@ -44,6 +46,11 @@ parser.add_argument("-l", "--link-checker", dest="accumulate"
, action='store_const', const=check_links, default=print_help
, help="Checks for dead links.")
+parser.add_argument("-f", "--main-functionality", dest="accumulate"
+ , action='store_const', const=check_main_web_functionality
+ , default=print_help
+ , help="Checks for main web functionality.")
+
# parser.add_argument("-n", "--navigation", dest="accumulate"
# , action="store_const", const=check_navigation, default=print_help
# , help="Checks for navigation.")