We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dd5018 commit 73174bbCopy full SHA for 73174bb
tests/test_path.py
@@ -50,7 +50,7 @@ def test_relative_to(path, source, include_source, expected):
50
)
51
def test_find_closest_ancestor(monkeypatch, path, potential_ancestors, expected):
52
# Ensures that files are detected by an existing suffix not if they also exist.
53
- monkeypatch.setattr("_pytask.nodes.Path.is_file", lambda x: bool(x.suffix))
+ monkeypatch.setattr(Path, "is_file", lambda x: bool(x.suffix))
54
result = find_closest_ancestor(path, potential_ancestors)
55
assert result == expected
56
0 commit comments