-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
♻️ Refactor pickle tests #938
base: master
Are you sure you want to change the base?
Conversation
ea0e93e
to
3eb82a4
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #938 +/- ##
==========================================
+ Coverage 95.09% 95.63% +0.53%
==========================================
Files 21 20 -1
Lines 2407 2404 -3
Branches 275 271 -4
==========================================
+ Hits 2289 2299 +10
+ Misses 46 33 -13
Partials 72 72
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
e763ee5
to
4bb5852
Compare
4bb5852
to
f4b7524
Compare
The main goal of these changes is to make test_pickle.py more readable and eliminate get_pickles.py. These changes: - add dict_data, pickled_data, and pickle_file_path fixtures - rename test_pickle to test_unpickle - add test_pickle_format_stability - replace test_load_from_file with test_pickle_backward_compatibility - replace get_pickles.py with test_write_pickle_file
f4b7524
to
b2b00a3
Compare
Hello @webknjaz, Would you mind reviewing this PR once you have a spare time? Thanks in advance! |
I wanted to reflect on what I prefer with this. #924 and this one made me realize that I'm not sure yet. So I'd keep it open for the time being. |
Hello @webknjaz,
What do these changes do?
The main goal of these changes is to make
test_pickle.py
more readable and eliminateget_pickles.py
.These changes:
dict_data
,pickled_data
, andpickle_file_path
fixturestest_pickle
totest_unpickle
test_pickle_format_stability
test_load_from_file
withtest_pickle_backward_compatibility
get_pickles.py
withtest_write_pickle_file
Are there changes in behavior for the user?
No.
Related issue number
tests/gen_pickles.py
into a pytest fixture #922This PR is alternative to:
Checklist
Best regards!