openml-python
openml-python copied to clipboard
Converting test_study to pytest
I've made some conversions to the test_study_functions.py file, and it now only uses pytest. List of changes made:
- Removed the unittest.TestCase class structure
- Converted setUp / tearDown into pytest fixtures
- Replaced helper methods with fixtures
- Removed all uses of
self - Replaced unittest.assert* with plain assert
- Removed test wrapper methods & replaced with parametrization
- Moved shared utilities into conftest.py
Metadata
- Reference Issue: #1252
- New Tests Added:
- Documentation Updated:
- Change Log Entry:
Details
Codecov Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 52.72%. Comparing base (4b1bdf4) to head (f61b5eb).
Additional details and impacted files
@@ Coverage Diff @@
## develop #1439 +/- ##
============================================
- Coverage 79.90% 52.72% -27.18%
============================================
Files 36 36
Lines 4349 4349
============================================
- Hits 3475 2293 -1182
- Misses 874 2056 +1182
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.