aboutsummaryrefslogtreecommitdiff
path: root/wqflask/tests/unit
diff options
context:
space:
mode:
authorBonfaceKilz2021-04-29 17:38:08 +0300
committerBonfaceKilz2021-04-29 17:38:08 +0300
commitf6c8f30528969bf916bff4290c55f0866f69e8ea (patch)
treeee5a961772bcabd7282e28081ad90e40acd0cf50 /wqflask/tests/unit
parente3593f24b18c085c88e783addf3f7eb990341efc (diff)
downloadgenenetwork2-f6c8f30528969bf916bff4290c55f0866f69e8ea.tar.gz
tests: unit: test_data_set: Remove unused mock
Diffstat (limited to 'wqflask/tests/unit')
-rw-r--r--wqflask/tests/unit/base/test_data_set.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/wqflask/tests/unit/base/test_data_set.py b/wqflask/tests/unit/base/test_data_set.py
index 96563a16..ab0dc51c 100644
--- a/wqflask/tests/unit/base/test_data_set.py
+++ b/wqflask/tests/unit/base/test_data_set.py
@@ -31,14 +31,12 @@ class TestDataSetTypes(unittest.TestCase):
def tearDown(self):
self.app_context.pop()
- @mock.patch('base.data_set.g')
- def test_data_set_type(self, db_mock):
+ def test_data_set_type(self):
"""Test that DatasetType returns correctly if the Redis Instance is not empty
and the name variable exists in the dictionary
"""
with app.app_context():
- db_mock.get = mock.Mock()
redis_mock = mock.Mock()
redis_mock.get.return_value = self.test_dataset
self.assertEqual(DatasetType(redis_mock)