diff options
author | BonfaceKilz | 2022-03-18 13:31:21 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-03-18 13:38:52 +0300 |
commit | 5171b3b08efcc7839e3d6c67cabb8f9831767b78 (patch) | |
tree | cdc7b08511a72acc4d359f44e7a8c90f18b61019 /test/requests/test-website.py | |
parent | 5e0894778d1c6734e5c728328ed0950a42b8c883 (diff) | |
download | genenetwork2-5171b3b08efcc7839e3d6c67cabb8f9831767b78.tar.gz |
Remove outdated integration tests on different login mechanisms
* test/requests/test-website.py: Delete parser option "-i" for running
integration tests.
(integration_tests): Delete it.
(integration_suite): Ditto.
(run_integration_tests): Ditto.
* test/requests/test_registration.py: Delete it.
Diffstat (limited to 'test/requests/test-website.py')
-rwxr-xr-x | test/requests/test-website.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/test/requests/test-website.py b/test/requests/test-website.py index 85174408..8b35c8ec 100755 --- a/test/requests/test-website.py +++ b/test/requests/test-website.py @@ -35,33 +35,12 @@ def print_help(args_obj, parser): def dummy(args_obj, parser): print("Not implemented yet.") -def integration_tests(args_obj, parser): - gn2_url = args_obj.host - run_integration_tests(gn2_url, es_url) def initTest(klass, gn2_url, es_url): loader = TestLoader() methodNames = loader.getTestCaseNames(klass) return [klass(mname, gn2_url, es_url) for mname in methodNames] -def integration_suite(gn2_url, es_url): - test_cases = [ - TestRegistration - , TestLoginLocal - , TestLoginGithub - , TestLoginOrcid - , TestForgotPassword - ] - the_suite = TestSuite() - for case in test_cases: - the_suite.addTests(initTest(case, gn2_url, es_url)) - return the_suite - -def run_integration_tests(gn2_url, es_url): - runner = TextTestRunner() - runner.run(integration_suite(gn2_url, es_url)) - - desc = """ This is Mechanical-Rob - an automated web server tester for Genenetwork.org @@ -95,9 +74,6 @@ parser.add_argument("-m", "--mapping", dest="accumulate" , action="store_const", const=check_mapping, default=print_help , help="Checks for mapping.") -parser.add_argument("-i", "--integration-tests", dest="accumulate" - , action="store_const", const=integration_tests, default=print_help - , help="Runs integration tests.") args = parser.parse_args() |