Skip to content
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

Use path objects throughout #226

Merged
merged 7 commits into from
Sep 13, 2023
Merged

Use path objects throughout #226

merged 7 commits into from
Sep 13, 2023

Conversation

JonathonReinhart
Copy link
Owner

pathlib.Path, added in Python 3.4, is a welcome improvement to many places in Scuba, making it clear when objects are paths, and making many path manipulation actions much simpler.

Add temporary Path() conversions in consumers which will be removed as
they are updated to use Path:
- ScubaVolume.get_vol_opt()
- ScubaDive.get_deocker_cmdline()
@github-actions
Copy link

github-actions bot commented Sep 13, 2023

Test Results

    5 files      5 suites   1m 48s ⏱️
160 tests 158 ✔️   2 💤 0
800 runs  790 ✔️ 10 💤 0

Results for commit 9c8384d.

♻️ This comment has been updated with latest results.

This makes changing this much simpler.
This required more elaborate changes due to the fact that
test_load_config_from_yaml_cached_file() uses mock.patch to count open()
calls.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant