Skip to content

Commit

Permalink
Refactor test_dbus-opendtu.py to remove unused mock_constants paramet…
Browse files Browse the repository at this point in the history
…er in test_register_service method
  • Loading branch information
0x7878 committed Nov 11, 2024
1 parent 3f24b5e commit d21f513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test_dbus-opendtu.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class TestRegisterService(unittest.TestCase):
@patch('dbus_opendtu.get_config_value')
@patch('dbus_opendtu.constants')

def test_register_service(self, mock_constants, mock_get_config_value, mock_dbus_service):
def test_register_service(self, mock_get_config_value, mock_dbus_service):
def get_config_value_side_effect(key, *args, **kwargs):
if isinstance(key, dict):
key = key.get('key', 'mock_value')
Expand Down

0 comments on commit d21f513

Please sign in to comment.