Skip to content

Remove str() wrapping on Path objects in tests#50

Merged
dannywillems merged 1 commit intomainfrom
fix/33-remove-str-path
Feb 8, 2026
Merged

Remove str() wrapping on Path objects in tests#50
dannywillems merged 1 commit intomainfrom
fix/33-remove-str-path

Conversation

@dannywillems
Copy link
Contributor

Summary

  • Replace open(str(f)) with open(f) in host test fixtures
  • open() accepts Path objects directly since Python 3.6

Test plan

  • All 70 tests pass

Closes #33

open() accepts Path objects directly since Python 3.6. Remove
the unnecessary str() conversion in test_get_host_success and
test_get_host_404.

Closes #33
@dannywillems dannywillems merged commit 53cecb6 into main Feb 8, 2026
3 checks passed
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.

Remove str() wrapping on Path objects in tests

1 participant