Skip to content

Commit

Permalink
Second try
Browse files Browse the repository at this point in the history
  • Loading branch information
Shutgun committed Oct 14, 2024
1 parent 4aea420 commit af71786
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e .[test]
pip install -e .[test]
- name: Test with pytest
run: |
pytest --cov=devolo_plc_api
- name: Preserve coverage
uses: actions/[email protected].1
uses: actions/[email protected].3
if: matrix.python-version == '3.9'
with:
name: coverage
Expand Down
2 changes: 1 addition & 1 deletion tests/test_deviceapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
from devolo_plc_api.device_api import ConnectedStationInfo, DeviceApi, NeighborAPInfo, RepeatedAPInfo, SupportInfoItem


@pytest.mark.skipif(sys.version_info < (3, 9), reason="Tests with httpx_mock need at least Python 3.9")
class TestDeviceApi:
"""Test devolo_plc_api.device_api.deviceapi.DeviceApi class."""

Expand All @@ -50,7 +51,6 @@ def test_feature(self, device_api: DeviceApi):
assert device_api.features == ["reset", "update", "led", "intmtg"]

@pytest.mark.asyncio
@pytest.mark.skipif(sys.version_info < (3, 9), reason="Tests with httpx_mock need at least Python 3.9")
@pytest.mark.parametrize("device_type", [DeviceType.PLC])
@pytest.mark.usefixtures("block_communication", "service_browser")
@pytest.mark.httpx_mock(can_send_already_matched_responses=True)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_plcnetapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
from . import DeviceType


@pytest.mark.skipif(sys.version_info < (3, 9), reason="Tests with httpx_mock need at least Python 3.9")
class TestPlcApi:
"""Test devolo_plc_api.plcnet_api.plcnetapi.PlcNetApi class."""

@pytest.mark.asyncio
@pytest.mark.skipif(sys.version_info < (3, 9), reason="Tests with httpx_mock need at least Python 3.9")
@pytest.mark.parametrize("device_type", [DeviceType.PLC])
@pytest.mark.usefixtures("block_communication", "service_browser")
@pytest.mark.httpx_mock(can_send_already_matched_responses=True)
Expand Down

0 comments on commit af71786

Please sign in to comment.