diff options
author | Alexander Kabui | 2021-04-05 14:34:01 +0300 |
---|---|---|
committer | Alexander Kabui | 2021-04-05 14:34:01 +0300 |
commit | a301093ce9ea825606db29bd1f1f40e1971897dd (patch) | |
tree | 10f0ee83b127a5cb907eb66dfe9955b44a0cd105 /tests/unit/computations/test_datasets.py | |
parent | 2301b11e8a975f2e6dc7e5144e4b26c34b186501 (diff) | |
download | genenetwork3-a301093ce9ea825606db29bd1f1f40e1971897dd.tar.gz |
fix for fetching dataset traits data
Diffstat (limited to 'tests/unit/computations/test_datasets.py')
-rw-r--r-- | tests/unit/computations/test_datasets.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unit/computations/test_datasets.py b/tests/unit/computations/test_datasets.py index b696f70..44ff527 100644 --- a/tests/unit/computations/test_datasets.py +++ b/tests/unit/computations/test_datasets.py @@ -29,6 +29,8 @@ class TestDatasets(TestCase): dataset_id = "HC_M2_0606_P&" dataset_type = "Publish" + database = mock.Mock() + dataset = { "id": dataset_id, "type": dataset_type, @@ -40,7 +42,7 @@ class TestDatasets(TestCase): mock_fetch_sample_results.return_value = fetch_results results = retrieve_trait_sample_data( - dataset, trait_name) + dataset, trait_name, database) self.assertEqual(mock_fetch_sample_results.call_count, 1) self.assertEqual(results, fetch_results) |