Skip to content

Commit 1a620c8

Browse files
Upgrade test suite to full pytest style
Remove PT009 and PT027 ruff exceptions and convert all unittest-style assertions and TestCase classes to native pytest equivalents across the test suite. setUp/tearDown methods are replaced with autouse fixtures using tmp_path.
1 parent 729bdea commit 1a620c8

File tree

4 files changed

+207
-232
lines changed

4 files changed

+207
-232
lines changed

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@ select = ["E", "F", "B", "W", "I", "N", "UP", "A", "PT"]
111111
ignore = [
112112
"A001", "A002", "RUF",
113113
"B905", #Don't add strict=False to zips (B905)
114-
"PT009", # unittest style self.assertEqual
115-
"PT027", # unittest style self.assertRaises
116114
"N818", # Exceptions not called "Error"
117115
"N806", "N802", "N803", # Various nags about uppercase vars
118116
"PT011", # pytest.raises(ValueError) too broad

0 commit comments

Comments
 (0)