Skip to content

Commit

Permalink
fix protocol unit test for python3.12 (#148)
Browse files Browse the repository at this point in the history
* fix protocol unit test for python3.12

* add workflow test for python 3.12
  • Loading branch information
ndokter committed Jan 29, 2024
1 parent 739419e commit 1680cac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- '3.9'
- '3.10'
- '3.11'
- '3.12'

name: Python ${{ matrix.python-version }}
steps:
Expand Down
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 1680cac

Please sign in to comment.