Skip to content

Commit 1b2a68d

Browse files
committed
fix(test_validate_hook.py): Corrected test for exclude_files toml option, which should have 0 findings
1 parent 59a3ac6 commit 1b2a68d

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

numpydoc/tests/hooks/test_validate_hook.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -168,14 +168,8 @@ def test_validate_hook_with_toml_config_exclude_files(example_module, tmp_path,
168168
)
169169
)
170170

171-
expected = inspect.cleandoc(
172-
"""
173-
"""
174-
)
175-
176171
return_code = run_hook([example_module], config=tmp_path)
177-
assert return_code == 1
178-
assert capsys.readouterr().err.strip() == expected
172+
assert return_code == 0 # Should report no findings.
179173

180174

181175
def test_validate_hook_with_setup_cfg(example_module, tmp_path, capsys):

0 commit comments

Comments
 (0)