aboutsummaryrefslogtreecommitdiff
path: root/test/requests/run-integration-tests.py
diff options
context:
space:
mode:
authorzsloan2018-04-16 22:23:19 +0000
committerzsloan2018-04-16 22:23:19 +0000
commit35913e15bb6ac93c429e9465ebc36215cc6350ea (patch)
treed0eaff3a15bb167d995f1459ee7e744697f137b3 /test/requests/run-integration-tests.py
parent273b79a0c2096a2eae5ce9aa2800917437459f68 (diff)
parentf511e38a9b440d08313471cdcc7bfd99add98f70 (diff)
downloadgenenetwork2-35913e15bb6ac93c429e9465ebc36215cc6350ea.tar.gz
Resolved conflicts after pulling changes
Diffstat (limited to 'test/requests/run-integration-tests.py')
-rw-r--r--test/requests/run-integration-tests.py34
1 files changed, 0 insertions, 34 deletions
diff --git a/test/requests/run-integration-tests.py b/test/requests/run-integration-tests.py
deleted file mode 100644
index 5e816549..00000000
--- a/test/requests/run-integration-tests.py
+++ /dev/null
@@ -1,34 +0,0 @@
-import sys
-from test_login_local import TestLoginLocal
-from test_login_orcid import TestLoginOrcid
-from test_login_github import TestLoginGithub
-from test_registration import TestRegistration
-from unittest import TestSuite, TextTestRunner, TestLoader
-
-test_cases = [
- TestRegistration
- , TestLoginLocal
- , TestLoginGithub
- , TestLoginOrcid
-]
-
-def suite(gn2_url, es_url):
- the_suite = TestSuite()
- for case in test_cases:
- the_suite.addTests(initTest(case, gn2_url, es_url))
- return the_suite
-
-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 main(gn2_url, es_url):
- runner = TextTestRunner()
- runner.run(suite(gn2_url, es_url))
-
-if __name__ == "__main__":
- if len(sys.argv) < 3:
- raise Exception("Required arguments missing:\n\tTry running `run-integration-test.py <gn2-url> <es-url>`")
- else:
- main(sys.argv[1], sys.argv[2])