Skip to content

Commit

Permalink
fix protocol unit test for python3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
ndokter committed Jan 29, 2024
1 parent 739419e commit 391c3f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@ def test_receive_packet(self):

# 2nd call of keep_alive should close the transport
self.protocol.keep_alive()
assert mock_transport.close.called_once()
mock_transport.close.assert_called_once()

self.protocol.connection_lost(None)
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ deps=
pytest-asyncio
pytest-mock
dlms_cosem
setuptools
commands=
py.test --cov=dsmr_parser test {posargs}
pylama dsmr_parser test
Expand Down

0 comments on commit 391c3f7

Please sign in to comment.