Skip to content

Commit 8fc7b83

Browse files
committed
refactor(test_validate_hook.py): Modified toml exclude_files test mark, to correct parameter order
1 parent acbc13d commit 8fc7b83

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

numpydoc/tests/hooks/test_validate_hook.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def test_validate_hook_with_toml_config(example_module, tmp_path, capsys):
144144
[(".*/example.*\.py", 0), (".*/non_existent_match.*\.py", 1)],
145145
)
146146
def test_validate_hook_with_toml_config_exclude_files(
147-
example_module, tmp_path, capsys, regex, expected_code
147+
example_module, regex, expected_code, tmp_path, capsys
148148
):
149149
"""
150150
Test that a file is correctly processed in the absence of config files
@@ -169,8 +169,7 @@ def test_validate_hook_with_toml_config_exclude_files(
169169
exclude_files = [
170170
"""
171171
+ regex
172-
+ """
173-
]
172+
+ """]
174173
"""
175174
)
176175
)

0 commit comments

Comments
 (0)