aboutsummaryrefslogtreecommitdiff
path: root/tests/integration/test_datasets.py
diff options
context:
space:
mode:
authorAlexander Kabui2021-03-31 23:55:52 +0300
committerAlexander Kabui2021-03-31 23:55:52 +0300
commit9d7839a75f158cb9ca46d81a5384ad42374ddd26 (patch)
treee181b25e8dff39145be3c8ca73ed1d74873e0def /tests/integration/test_datasets.py
parentf065ea860f8001942bbf7c61eb49e515d358d2eb (diff)
downloadgenenetwork3-9d7839a75f158cb9ca46d81a5384ad42374ddd26.tar.gz
add fetch dataset strain id,strain name and unittests
Diffstat (limited to 'tests/integration/test_datasets.py')
-rw-r--r--tests/integration/test_datasets.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/integration/test_datasets.py b/tests/integration/test_datasets.py
index 255d998..cb08ad1 100644
--- a/tests/integration/test_datasets.py
+++ b/tests/integration/test_datasets.py
@@ -26,3 +26,12 @@ class DatasetIntegrationTests(TestCase):
results = response.get_json()["dataset"]
self.assertEqual(results[1], "ProbeSet")
self.assertEqual(response.status_code, 200)
+
+ def test_fetch_traits_data(self):
+ """test api/dataset/fetch_traits_data/d_name/d_type"""
+
+ response = self.app.get(
+ "/api/dataset/fetch_traits_data/Aging-Brain-UCIPublish/Publish")
+
+ self.assertEqual(response.status_code, 200)
+ self.assertEqual(response.get_json(), {})