We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5123588 commit 6b081c5Copy full SHA for 6b081c5
1 file changed
tests/test_study/test_study_functions.py
@@ -29,6 +29,17 @@ def test_get_tasks(self):
29
self.assertIsNone(study.setups)
30
self.assertIsNone(study.runs)
31
32
+ def test_get_tasks_new_studies(self):
33
+ study_id = 99
34
+
35
+ study = openml.study.get_study(study_id, 'tasks')
36
+ self.assertGreater(len(study.data), 0)
37
+ self.assertGreaterEqual(len(study.tasks), len(study.data))
38
+ # other entities should be None because of the tasks filter
39
+ self.assertIsNone(study.flows)
40
+ self.assertIsNone(study.setups)
41
+ self.assertIsNone(study.runs)
42
43
def test_publish_benchmark_suite(self):
44
fixture_alias = None
45
fixture_name = 'unit tested benchmark suite'
0 commit comments