Skip to content

fixes empty listing bug - #405

Merged
mfeurer merged 1 commit into
developfrom
empty_listing_bug
Feb 22, 2018
Merged

fixes empty listing bug#405
mfeurer merged 1 commit into
developfrom
empty_listing_bug

Conversation

@janvanrijn

Copy link
Copy Markdown
Member

Ensures that listing fn consistently returns a dict

@codecov-io

codecov-io commented Feb 21, 2018

Copy link
Copy Markdown

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 FilesCoverage Δ
openml/study/functions.py92.5% <ø> (ø)⬆️
openml/_api_calls.py88.88% <100%> (ø)⬆️
openml/setups/functions.py95.31% <100%> (+0.95%)⬆️
openml/evaluations/functions.py92.68% <100%> (+0.79%)⬆️
openml/flows/functions.py92.47% <100%> (ø)⬆️
openml/datasets/functions.py90.18% <100%> (ø)⬆️
openml/tasks/functions.py86.16% <100%> (ø)⬆️
openml/runs/functions.py86.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.

@mfeurermfeurer left a comment

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
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) No newline at end of file

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 developFeb 22, 2018
@mfeurer
mfeurer deleted the empty_listing_bug branch February 22, 2018 17:01
Sign up for freeto 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.

3 participants

@janvanrijn@codecov-io@mfeurer