Skip to content

Commit a423a6a

Browse files
committed
added unit test
1 parent c80c1b0 commit a423a6a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/test_tasks/test_task_functions.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ def test__get_estimation_procedure_list(self):
4242
self.assertIsInstance(estimation_procedures[0], dict)
4343
self.assertEqual(estimation_procedures[0]['task_type_id'], 1)
4444

45+
46+
def test_list_clustering_task(self):
47+
# as shown by #383, clustering tasks can give problems to server
48+
openml.config.server = self.production_server
49+
openml.tasks.list_tasks(task_type_id=5, size=10)
50+
4551
def _check_task(self, task):
4652
self.assertEqual(type(task), dict)
4753
self.assertGreaterEqual(len(task), 2)

0 commit comments

Comments
 (0)