Skip to content

Commit

Permalink
Prefix unused var with _
Browse files Browse the repository at this point in the history
  • Loading branch information
fupduck committed Jun 19, 2024
1 parent 35c278b commit 4eb45e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions certbot_dns_hetzner/dns_hetzner_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def setUp(self):
return_value=self.mock_client)

@patch_display_util()
def test_perform(self, unused_mock_get_utility):
def test_perform(self, _unused_mock_get_utility):
self.mock_client.create_record.return_value = FAKE_RECORD
self.auth.perform([self.achall])
self.mock_client.create_record.assert_called_with(
Expand All @@ -65,7 +65,7 @@ def test_perform_but_raises_plugin_error(self):
)

@patch_display_util()
def test_cleanup(self, unused_mock_get_utility):
def test_cleanup(self, _unused_mock_get_utility):
self.mock_client.create_record.return_value = FAKE_RECORD
# _attempt_cleanup | pylint: disable=protected-access
self.auth.perform([self.achall])
Expand All @@ -77,7 +77,7 @@ def test_cleanup(self, unused_mock_get_utility):
)

@patch_display_util()
def test_cleanup_but_raises_plugin_error(self, unused_mock_get_utility):
def test_cleanup_but_raises_plugin_error(self, _unused_mock_get_utility):
self.mock_client.create_record.return_value = FAKE_RECORD
self.mock_client.delete_record.side_effect = mock.MagicMock(
side_effect=PluginError()
Expand Down

0 comments on commit 4eb45e1

Please sign in to comment.