Skip to content

Commit

Permalink
PyDocStyle Check - PT005: Fixture returns a value, remove leading und…
Browse files Browse the repository at this point in the history
…erscore (#43292)

* style: remove underscore from function name

* style: remove PT005 from ignore list
  • Loading branch information
dannyl1u authored Oct 23, 2024
1 parent 8ab555c commit e49033d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion providers/tests/ssh/operators/test_ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def setup_method(self):

# Make sure nothing in this test actually connects to SSH -- that's for hook tests.
@pytest.fixture(autouse=True)
def _patch_exec_ssh_client(self):
def patch_exec_ssh_client(self):
with mock.patch.object(self.hook, "exec_ssh_client_command") as exec_ssh_client_command:
self.exec_ssh_client_command = exec_ssh_client_command
exec_ssh_client_command.return_value = (0, b"airflow", "")
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,6 @@ ignore = [
"E731", # Do not assign a lambda expression, use a def
"TCH003", # Do not move imports from stdlib to TYPE_CHECKING block
"PT004", # Fixture does not return anything, add leading underscore
"PT005", # Fixture returns a value, remove leading underscore
"PT006", # Wrong type of names in @pytest.mark.parametrize
"PT007", # Wrong type of values in @pytest.mark.parametrize
"PT013", # silly rule prohibiting e.g. `from pytest import param`
Expand Down

0 comments on commit e49033d

Please sign in to comment.