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_registration.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_registration.py')
-rw-r--r-- | test/requests/test_registration.py | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/test/requests/test_registration.py b/test/requests/test_registration.py deleted file mode 100644 index 5d08bf58..00000000 --- a/test/requests/test_registration.py +++ /dev/null @@ -1,35 +0,0 @@ -import sys -import requests - -class TestRegistration(ParametrizedTest): - - - def testRegistrationPage(self): - data = { - "email_address": "test@user.com", - "full_name": "Test User", - "organization": "Test Organisation", - "password": "test_password", - "password_confirm": "test_password" - } - requests.post(self.gn2_url+"/n/register", data) - response = self.es.search( - index="users" - , doc_type="local" - , body={ - "query": {"match": {"email_address": "test@user.com"}}}) - self.assertEqual(len(response["hits"]["hits"]), 1) - - -def main(gn2, es): - import unittest - suite = unittest.TestSuite() - suite.addTest(TestRegistration(methodName="testRegistrationPage", gn2_url=gn2, es_url=es)) - runner = unittest.TextTestRunner() - runner.run(suite) - -if __name__ == "__main__": - if len(sys.argv) < 3: - raise Exception("Required arguments missing") - else: - main(sys.argv[1], sys.argv[2]) |