aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBonfaceKilz2020-07-21 22:46:49 +0300
committerBonfaceKilz2020-07-24 03:47:42 +0300
commit3d6483e8fd59d2e77149aa5d78ec32448be7338c (patch)
tree0980726ba603632bd6a5433f24fb4b084213b46a /test
parent7dff20b84aaab9c5c9e15269a1716cd14d953db1 (diff)
downloadgenenetwork2-3d6483e8fd59d2e77149aa5d78ec32448be7338c.tar.gz
Move tests to module
* test/unittest/: Move to wqflask/tests/
Diffstat (limited to 'test')
-rw-r--r--test/unittest/__init__.py0
-rw-r--r--test/unittest/base/__init__.py0
-rw-r--r--test/unittest/base/test_data_set.py8
-rw-r--r--test/unittest/base/test_general_object.py21
4 files changed, 0 insertions, 29 deletions
diff --git a/test/unittest/__init__.py b/test/unittest/__init__.py
deleted file mode 100644
index e69de29b..00000000
--- a/test/unittest/__init__.py
+++ /dev/null
diff --git a/test/unittest/base/__init__.py b/test/unittest/base/__init__.py
deleted file mode 100644
index e69de29b..00000000
--- a/test/unittest/base/__init__.py
+++ /dev/null
diff --git a/test/unittest/base/test_data_set.py b/test/unittest/base/test_data_set.py
deleted file mode 100644
index 6537efa6..00000000
--- a/test/unittest/base/test_data_set.py
+++ /dev/null
@@ -1,8 +0,0 @@
-import unittest
-
-import wqflask.base.data_set
-print dir()
-
-class TestDataSet(unittest.TestCase):
- def test_add(self):
- self.assertEqual(3, 4)
diff --git a/test/unittest/base/test_general_object.py b/test/unittest/base/test_general_object.py
deleted file mode 100644
index eaefdec9..00000000
--- a/test/unittest/base/test_general_object.py
+++ /dev/null
@@ -1,21 +0,0 @@
-import unittest
-
-from wqflask.base.GeneralObject import GeneralObject
-
-
-class TestGeneralObjectTests(unittest.TestCase):
- """
- Test the GeneralObject base class
- """
-
- def test_object_contents(self):
- """Test whether base contents are stored properly"""
- test_obj = GeneralObject("a", "b", "c")
- self.assertEqual("abc", ''.join(test_obj.contents))
-
- def test_object_dict(self):
- """Test whether the base class is printed properly"""
- test_obj = GeneralObject("a", name="test", value=1)
- self.assertEqual(str(test_obj), "value = 1\nname = test\n")
- self.assertEqual(
- repr(test_obj), "value = 1\nname = test\ncontents = ['a']\n")