aboutsummaryrefslogtreecommitdiff
path: root/test/requests
diff options
context:
space:
mode:
authorMuriithi Frederick Muriuki2018-02-23 17:24:55 +0300
committerPjotr Prins2018-03-26 09:29:29 +0000
commite982d7223141d247954ab5b5c1ff9bbed907c603 (patch)
treecf256f9b678c2a5042ace44df92b818142f00d92 /test/requests
parente1e3ea41578947e47b2f394e6e3ba4f45eceeb82 (diff)
downloadgenenetwork2-e982d7223141d247954ab5b5c1ff9bbed907c603.tar.gz
Remove failing code
* With the parameterized module, the testcase cannot be run independently at this time.
Diffstat (limited to 'test/requests')
-rw-r--r--test/requests/test_login_local.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/test/requests/test_login_local.py b/test/requests/test_login_local.py
index 8e2dec4e..808649ca 100644
--- a/test/requests/test_login_local.py
+++ b/test/requests/test_login_local.py
@@ -58,19 +58,3 @@ class TestLoginLocal(ParametrizedTest):
result = requests.post(self.login_url, data=data)
index = result.content.find(expected)
self.assertTrue(index >= 0, message)
-
-
-def main(gn2, es):
- import unittest
- suite = unittest.TestSuite()
- suite.addTest(TestLoginLocal(methodName="testLoginNonRegisteredUser", gn2_url=gn2, es_url=es))
- suite.addTest(TestLoginLocal(methodName="testLoginWithRegisteredUserBothRememberMeAndImportCollectionsFalse", gn2_url=gn2, es_url=es))
- runner = unittest.TextTestRunner()
- runner.run(suite)
-
-if __name__ == "__main__":
- import sys
- if len(sys.argv) < 3:
- raise Exception("Required arguments missing")
- else:
- main(sys.argv[1], sys.argv[2])