Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 275
Fix unit tests#448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Fix unit tests #448
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| *~ | ||
| doc/generated | ||
| examples/.ipynb_checkpoints | ||
| # Byte-compiled / optimized / DLL files | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| from openml.testing import TestBase | ||
| import openml | ||
| class OpenMLTaskTest(TestBase): | ||
| _multiprocess_can_split_ = True | ||
| def test_list_all(self): | ||
| list_datasets = openml.datasets.functions._list_datasets | ||
| datasets = openml.utils.list_all(list_datasets) | ||
| self.assertGreaterEqual(len(datasets), 100) | ||
| for did in datasets: | ||
| self._check_dataset(datasets[did]) | ||
| # TODO implement these tests | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure you didn't forget these?
| ||
| # datasets = openml.utils.list_all(list_datasets, limit=50) | ||
| # self.assertEqual(len(datasets), 50) | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can just use assertGreater instead of also making use of assertIsInstance, since if the argument is False it will throw AttributeError: 'NoneType' object has no attribute 'fail'.