diff options
author | BonfaceKilz | 2020-09-17 16:07:01 +0300 |
---|---|---|
committer | BonfaceKilz | 2020-09-17 16:07:01 +0300 |
commit | 81f6c22573db69e8ab0d2b831fc659147a839bbd (patch) | |
tree | 59cea49c4e8ed05dab9a26b6835492b1ebe85d17 /wqflask/tests/base/test_data_set.py | |
parent | 90475fed0b2d1bd192a641bd417f6dfef79653d0 (diff) | |
parent | 8da6a70916d2cf18e476ab0adf47f802c481205d (diff) | |
download | genenetwork2-81f6c22573db69e8ab0d2b831fc659147a839bbd.tar.gz |
Merge branch 'testing' into build/python3-migration
Diffstat (limited to 'wqflask/tests/base/test_data_set.py')
-rw-r--r-- | wqflask/tests/base/test_data_set.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/wqflask/tests/base/test_data_set.py b/wqflask/tests/base/test_data_set.py index e6000e56..b1de4932 100644 --- a/wqflask/tests/base/test_data_set.py +++ b/wqflask/tests/base/test_data_set.py @@ -71,7 +71,7 @@ class TestDataSetTypes(unittest.TestCase): @mock.patch('base.data_set.g') def test_set_dataset_key_mrna(self, db_mock): with app.app_context(): - db_mock.db.execute.return_value = [1, 2, 3] + db_mock.db.execute.return_value.fetchone.return_value = [1, 2, 3] redis_mock = mock.Mock() redis_mock.get.return_value = self.test_dataset data_set = DatasetType(redis_mock) @@ -98,7 +98,7 @@ class TestDataSetTypes(unittest.TestCase): @mock.patch('base.data_set.g') def test_set_dataset_key_pheno(self, db_mock): with app.app_context(): - db_mock.db.execute.return_value = [1, 2, 3] + db_mock.db.execute.return_value.fetchone.return_value = [1, 2, 3] redis_mock = mock.Mock() redis_mock.get.return_value = self.test_dataset data_set = DatasetType(redis_mock) @@ -127,7 +127,7 @@ class TestDataSetTypes(unittest.TestCase): @mock.patch('base.data_set.g') def test_set_dataset_other_pheno(self, db_mock): with app.app_context(): - db_mock.db.execute.return_value = [1, 2, 3] + db_mock.db.execute.return_value.fetchone.return_value = [1, 2, 3] redis_mock = mock.Mock() redis_mock.get.return_value = self.test_dataset data_set = DatasetType(redis_mock) @@ -157,7 +157,7 @@ class TestDataSetTypes(unittest.TestCase): @mock.patch('base.data_set.g') def test_set_dataset_geno(self, db_mock): with app.app_context(): - db_mock.db.execute.return_value = [1, 2, 3] + db_mock.db.execute.return_value.fetchone.return_value = [1, 2, 3] redis_mock = mock.Mock() redis_mock.get.return_value = self.test_dataset data_set = DatasetType(redis_mock) |