Skip to content

Commit a599241

Browse files
Update tests to reflect new behaviour
1 parent a60d15e commit a599241

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/usethis/_integrations/pre_commit/test_version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def test_uses_declared_minimum_version(self, tmp_path: Path):
6767
""")
6868

6969
# Act
70-
with change_cwd(tmp_path):
70+
with change_cwd(tmp_path), files_manager():
7171
result = get_pre_commit_version()
7272

7373
# Assert
@@ -92,7 +92,7 @@ def test_falls_back_to_hardcoded_when_minimum_not_declared(self, tmp_path: Path)
9292
""")
9393

9494
# Act
95-
with change_cwd(tmp_path):
95+
with change_cwd(tmp_path), files_manager():
9696
result = get_pre_commit_version()
9797

9898
# Assert

0 commit comments

Comments
 (0)