Skip to content

Commit dbb928f

Browse files
Update tests to reflect new behaviour
1 parent 280bf01 commit dbb928f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/usethis/_core/test_core_tool.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,6 +1468,7 @@ def test_no_duplicate_inp_rules(self, tmp_path: Path):
14681468

14691469
# Arrange
14701470
(tmp_path / "ruff.toml").touch()
1471+
(tmp_path / "tests").mkdir()
14711472

14721473
with change_cwd(tmp_path), files_manager():
14731474
# ... preparing for duplicate call
@@ -1575,6 +1576,7 @@ def test_inp_rules_dont_break_config(self, uv_init_dir: Path):
15751576
lint.select = [ "A", "C4", "E4", "E7", "E9", "F", "FLY", "FURB", "I", "INP", "PLE", "PLR", "PT", "RUF", "SIM", "UP" ]
15761577
lint.ignore = [ "PLR2004", "SIM108" ]
15771578
""")
1579+
(uv_init_dir / "tests").mkdir()
15781580

15791581
with change_cwd(uv_init_dir), files_manager():
15801582
# Act
@@ -2720,6 +2722,7 @@ def test_import_linter_inp_rules(self, tmp_path: Path):
27202722
with change_cwd(tmp_path), files_manager():
27212723
# Arrange
27222724
use_import_linter()
2725+
(tmp_path / "tests").mkdir()
27232726

27242727
# Act
27252728
(tmp_path / "ruff.toml").touch()

0 commit comments

Comments
 (0)