Skip to content

Commit a6d4769

Browse files
Fix test which doesn't test what is intended
1 parent 234cb46 commit a6d4769

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/usethis/test_usethis_tool.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,13 +1087,13 @@ def test_no_rules(self, tmp_path: Path):
10871087
(tmp_path / "pyproject.toml").write_text(
10881088
"""\
10891089
[tool.ruff.lint]
1090-
ignore = []
1090+
ignore = ["A"]
10911091
"""
10921092
)
10931093

10941094
# Act
10951095
with change_cwd(tmp_path), PyprojectTOMLManager():
1096-
RuffTool().ignore_rules(["A", "B"])
1096+
RuffTool().ignore_rules([])
10971097

10981098
# Assert
1099-
assert RuffTool().get_ignored_rules() == ["A", "B"]
1099+
assert RuffTool().get_ignored_rules() == ["A"]

0 commit comments

Comments
 (0)