Skip to content

Commit

Permalink
pass pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
fhydralisk committed Jul 18, 2023
1 parent 8e9f61a commit 6737ae1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pymodbus/server/async_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def __init__(
broadcast_enable=False,
response_manipulator=None,
request_tracer=None,
**kwargs
**kwargs # pylint: disable=W0613
):
"""Initialize the socket server.
Expand Down
3 changes: 2 additions & 1 deletion test/test_simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import copy
import json

import pytest
from unittest.mock import patch, mock_open
import pytest

from pymodbus.datastore import ModbusSimulatorContext
from pymodbus.datastore.simulator import Cell, CellType, Label
Expand Down Expand Up @@ -561,6 +561,7 @@ def test_simulator_action_random(self, celltype, minval, maxval):
assert minval <= new_value <= maxval

async def test_init_simulator(self):
"""Test init simulator server"""
with patch("builtins.open", mock_open(read_data=json.dumps({
"server_list": self.default_server_config,
"device_list": {"device": self.default_config}})
Expand Down

0 comments on commit 6737ae1

Please sign in to comment.