Skip to content

Commit 665d46c

Browse files
committed
Adress review comments
#831 (comment)
1 parent 8831b60 commit 665d46c

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

tests/pytest/_cli_test.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,13 @@ def test_known_interrupts(
5252
class CustomCmdStub:
5353
CLI_SUBCOMMAND_NAME = 'sentinel'
5454

55-
@staticmethod
56-
def populate_argument_parser(
57-
subcommand_parser: ArgumentParser, # noqa: ARG004
55+
def populate_argument_parser( # noqa: PLR6301
56+
self,
57+
subcommand_parser: ArgumentParser, # noqa: ARG002
5858
) -> None:
5959
return None
6060

61-
@staticmethod
62-
def invoke_cli_app(parsed_cli_args: Namespace) -> ReturnCodeType: # noqa: ARG004
61+
def invoke_cli_app(self, parsed_cli_args: Namespace) -> ReturnCodeType: # noqa: PLR6301, ARG002
6362
raise raised_error
6463

6564
monkeypatch.setattr(
@@ -83,14 +82,16 @@ def test_app_exit(
8382
class CustomCmdStub:
8483
CLI_SUBCOMMAND_NAME = 'sentinel'
8584

86-
@staticmethod
87-
def populate_argument_parser(
88-
subcommand_parser: ArgumentParser,
85+
def populate_argument_parser( # noqa: PLR6301
86+
self,
87+
subcommand_parser: ArgumentParser, # noqa: ARG002
8988
) -> None:
9089
return None
9190

92-
@staticmethod
93-
def invoke_cli_app(parsed_cli_args: Namespace) -> ReturnCodeType: # noqa: ARG004
91+
def invoke_cli_app( # noqa: PLR6301
92+
self,
93+
parsed_cli_args: Namespace, # noqa: ARG002
94+
) -> ReturnCodeType:
9495
err = 'sentinel'
9596
raise PreCommitTerraformExit(err)
9697

0 commit comments

Comments
 (0)