Skip to content

Prefer lazy loading in unit tests - #655

Merged
mfeurer merged 2 commits into
developfrom
lazy_unit_tests
Apr 1, 2019
Merged

mfeurer merged 2 commits into
developfrom
lazy_unit_tests

Conversation

@PGijsbers

Copy link
Copy Markdown
Collaborator

Prefer lazy loading for all unit tests that don't explicitly need the arff file.
Incremental progress towards #330.

I don't think it matters much for most unit tests (many call get_data after downloading the data regardless), but it helps for some and otherwise hopefully encourages future additions to think about lazily loading data :)

If there are any other suggestions that should be included in the PR I'd like to hear them.

@PGijsbers

Copy link
Copy Markdown
Collaborator Author

Same fails as #654, see that PR.

@codecov-io

codecov-io commented Apr 1, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #655 into develop will decrease coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #655      +/-   ##
===========================================
- Coverage    90.96%   90.93%   -0.03%     
===========================================
  Files           32       32              
  Lines         3388     3388              
===========================================
- Hits          3082     3081       -1     
- Misses         306      307       +1
Impacted Files Coverage Δ
openml/runs/functions.py 86.43% <0%> (-0.22%) ⬇️

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 6b081c5...bfeadac. Read the comment docs.

@PGijsbers
PGijsbers requested a review from mfeurer April 1, 2019 10:10
@mfeurer
mfeurer merged commit 3984a64 into develop Apr 1, 2019
@mfeurer
mfeurer deleted the lazy_unit_tests branch April 1, 2019 14:11
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.

3 participants