Skip to content

Conversation

@janvanrijn
Copy link
Member

Ensures that listing fn consistently returns a dict

@janvanrijn janvanrijn requested a review from mfeurer February 21, 2018 15:58
@codecov-io
Copy link

codecov-io commented Feb 21, 2018

Codecov Report

Merging #405 into develop will increase coverage by 0.07%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #405      +/-   ##
===========================================
+ Coverage    89.02%   89.09%   +0.07%     
===========================================
  Files           32       32              
  Lines         2660     2668       +8     
===========================================
+ Hits          2368     2377       +9     
+ Misses         292      291       -1
Impacted Files Coverage Δ
openml/study/functions.py 92.5% <ø> (ø) ⬆️
openml/_api_calls.py 88.88% <100%> (ø) ⬆️
openml/setups/functions.py 95.31% <100%> (+0.95%) ⬆️
openml/evaluations/functions.py 92.68% <100%> (+0.79%) ⬆️
openml/flows/functions.py 92.47% <100%> (ø) ⬆️
openml/datasets/functions.py 90.18% <100%> (ø) ⬆️
openml/tasks/functions.py 86.16% <100%> (ø) ⬆️
openml/runs/functions.py 86.19% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1819b63...4d8f25b. Read the comment docs.

Copy link
Collaborator

@mfeurer mfeurer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, only a minor remark.

if len(datasets) > 0:
raise ValueError('UnitTest Outdated, tag was already used (please remove)')

self.assertIsInstance(datasets, dict)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should also check that the dictionary is actually empty.

if len(evaluations) > 0:
raise ValueError('UnitTest Outdated, got somehow results')

self.assertIsInstance(evaluations, dict)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

if len(runs) > 0:
raise ValueError('UnitTest Outdated, got somehow results')

self.assertIsInstance(runs, dict)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

if len(setups) > 0:
raise ValueError('UnitTest Outdated, got somehow results')

self.assertIsInstance(setups, dict)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

if len(tasks) > 0:
raise ValueError('UnitTest Outdated, got somehow results (tag is used, please adapt)')

self.assertIsInstance(tasks, dict)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

@mfeurer mfeurer merged commit a1e9368 into develop Feb 22, 2018
@mfeurer mfeurer deleted the empty_listing_bug branch February 22, 2018 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants