-
Notifications
You must be signed in to change notification settings - Fork 9
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
Fix .as_uri()
and .absolute()
implementations for WorkspacePath
#126
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ore functionality. Work-in-progress: not yet complete.
… worse than the problem.
The code as-is is temporary.
This will mean it's clearer in the PR what has changed.
Instead modify behaviour via the constructor-injected mock.
Previously to produce the desired results these tests mutated the internal state of the object under test.
This is expected by the integration tests.
asnare
changed the title
Fix
Fix Jul 12, 2024
.as_uri()
implementation for WorkspacePath
.as_uri()
and .absolute()
implementations for WorkspacePath
❌ 16/18 passed, 2 failed, 2 skipped, 29s total ❌ test_open_text_io: AttributeError: 'object' object has no attribute 'parse_parts' (1.308s)
❌ test_file_and_notebook_in_same_folder_with_different_suffixes: AttributeError: 'object' object has no attribute 'parse_parts' (897ms)
Running from acceptance #178 |
Rebased (and superseded) by #127. |
nfx
pushed a commit
that referenced
this pull request
Jul 12, 2024
…#127) This PR is a rebase that replaces #126 and fixes some things that the integration tests expect but weren't covered by unit tests: - `.as_uri()`, which internally depends on the `__bytes__()` dunder method. - `.absolute()`, which is supported in the trivial (no-op) case. Both underlying implementations depend on PathLib internals that changed across python versions.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is stacked on #122 and fixes some things that the integration tests expect but weren't covered by unit tests:
.as_uri()
, which internally depends on the__bytes__()
dunder method..absolute()
, which is supported in the trivial (no-op) case.Both underlying implementations depend on PathLib internals that changed across python versions.
With this PR applied, some integrations still fail due to missing globbing support, which is implemented as #125.