diff options
author | Frederick Muriuki Muriithi | 2022-11-28 09:14:06 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-11-28 09:14:06 +0300 |
commit | f935f79b95d1345583254e38d146cece75cd5cf4 (patch) | |
tree | a2a0f93e0f50643e20f54d09a2b15d7902d137f0 /test/requests/test-website.py | |
parent | e33a3a78d33f409ae20c8486d0bd2453f189e2b1 (diff) | |
download | genenetwork2-f935f79b95d1345583254e38d146cece75cd5cf4.tar.gz |
mechanical-rob: First test for correlations correctness
* test/requests/correlation_tests.py: Add proof-of-concept code to run
the checks for correctness.
* test/requests/test-website.py: Add a way to manually run the tests
from the CLI
Diffstat (limited to 'test/requests/test-website.py')
-rwxr-xr-x | test/requests/test-website.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/test/requests/test-website.py b/test/requests/test-website.py index 7edb42bc..35a69c6c 100755 --- a/test/requests/test-website.py +++ b/test/requests/test-website.py @@ -9,7 +9,7 @@ from link_checker import check_links from link_checker import check_packaged_js_files from mapping_tests import check_mapping from navigation_tests import check_navigation -from correlation_tests import check_correlations +from correlation_tests import check_correlations, check_correlations_correctness from main_web_functionality import check_main_web_functionality import link_checker import sys @@ -43,6 +43,7 @@ def run_all(args_obj, parser): check_packaged_js_files(args_obj, parser) check_mapping(args_obj, parser) check_correlations(args_obj, parser) + # check_correlations_correctness(args_obj, parser) # activate once all correlations are verified # TODO: Add other functions as they are created. @@ -135,6 +136,16 @@ parser.add_argument( help="Checks that correlations run correctly.", ) +parser.add_argument( + "-e", + "--correlations-correctness", + dest="accumulate", + action="store_const", + const=check_correlations_correctness, + default=print_help, + help="Check that the correlation results are correct" +) + args = parser.parse_args() |