aboutsummaryrefslogtreecommitdiff
path: root/test/unittest
diff options
context:
space:
mode:
authorBonfaceKilz2020-07-16 17:32:13 +0300
committerBonfaceKilz2020-07-16 17:32:13 +0300
commit82929468a0769766cc874b18dbbf5acaa15bc6fc (patch)
treed15d1d381c6352e227c88f050c1f0a78d21a21cf /test/unittest
parentcc7d0573f1144a3cbbef1feb5c2645ac7ae7bf2c (diff)
downloadgenenetwork2-82929468a0769766cc874b18dbbf5acaa15bc6fc.tar.gz
Remove unused test
Diffstat (limited to 'test/unittest')
-rw-r--r--test/unittest/test_registration.py27
1 files changed, 0 insertions, 27 deletions
diff --git a/test/unittest/test_registration.py b/test/unittest/test_registration.py
deleted file mode 100644
index 98d0cdff..00000000
--- a/test/unittest/test_registration.py
+++ /dev/null
@@ -1,27 +0,0 @@
-# Run test with something like
-#
-# env GN2_PROFILE=~/opt/gn-latest GENENETWORK_FILES=$HOME/gn2_data ./bin/genenetwork2 ./etc/default_settings.py -c ../test/unittest/test_registration.py
-#
-
-import unittest
-import mock.es_double as es
-from wqflask.user_manager import RegisterUser
-
-class TestRegisterUser(unittest.TestCase):
- def setUp(self):
- self.es = es.ESDouble()
-
- def testRegisterUserWithCorrectData(self):
- data = {
- "email_address": "user@example.com"
- , "full_name": "A.N. Other"
- , "organization": "Some Organisation"
- , "password": "testing"
- , "password_confirm": "testing"
- , "es_connection": self.es
- }
- result = RegisterUser(data)
- self.assertEqual(len(result.errors), 0, "Errors were not expected")
-
-if __name__ == "__main__":
- unittest.main()