@@ -24,8 +24,7 @@ def test_arg_parser_populated() -> None:
2424def test_check_is_deprecated () -> None :
2525 """Verify that `replace-docs` shows a deprecation warning."""
2626 deprecation_msg_regex = (
27- r'^`terraform_docs_replace` hook is DEPRECATED\.'
28- 'For migration.*$'
27+ r'^`terraform_docs_replace` hook is DEPRECATED\.For migration.*$'
2928 )
3029 with pytest .warns (UserWarning , match = deprecation_msg_regex ):
3130 # not `pytest.deprecated_call()` due to this being a user warning
@@ -70,10 +69,10 @@ def test_check_is_deprecated() -> None:
7069 'pre_commit_terraform.terraform_docs_replace' ,
7170)
7271def test_control_flow_positive (
73- expected_cmds : list [str ],
74- mocker : pytest_mock .MockerFixture ,
75- monkeypatch : pytest .MonkeyPatch ,
76- parsed_cli_args : Namespace ,
72+ expected_cmds : list [str ],
73+ mocker : pytest_mock .MockerFixture ,
74+ monkeypatch : pytest .MonkeyPatch ,
75+ parsed_cli_args : Namespace ,
7776) -> None :
7877 """Check that the subcommand's happy path works."""
7978 check_call_mock = mocker .Mock ()
@@ -86,7 +85,7 @@ def test_control_flow_positive(
8685 assert ReturnCode .OK == invoke_cli_app (parsed_cli_args )
8786
8887 executed_commands = [
89- cmd for ((cmd , ), _shell ) in check_call_mock .call_args_list
88+ cmd for ((cmd ,), _shell ) in check_call_mock .call_args_list
9089 ]
9190
9291 assert len (expected_cmds ) == check_call_mock .call_count
@@ -98,8 +97,8 @@ def test_control_flow_positive(
9897 'pre_commit_terraform.terraform_docs_replace' ,
9998)
10099def test_control_flow_negative (
101- mocker : pytest_mock .MockerFixture ,
102- monkeypatch : pytest .MonkeyPatch ,
100+ mocker : pytest_mock .MockerFixture ,
101+ monkeypatch : pytest .MonkeyPatch ,
103102) -> None :
104103 """Check that the subcommand's error processing works."""
105104 parsed_cli_args = Namespace (
0 commit comments