Skip to content

Commit

Permalink
Skip tests that need timezone data on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
koenvervloesem committed Feb 1, 2023
1 parent d837a0a commit c33b383
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ testing =
pytest-cov
time-machine
backports-zoneinfo; python_version<"3.9"
tzdata

[options.entry_points]
console_scripts =
Expand Down
1 change: 1 addition & 0 deletions tests/test_pvvx.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def test_get_time_from_bytes() -> None:
)


@pytest.mark.skipif(sys.platform.startswith("win"))
@time_machine.travel(datetime(2023, 1, 7, 18, 41, tzinfo=CET_TZ), tick=False)
def test_get_bytes_from_time() -> None:
"""Test the command to set the time."""
Expand Down
1 change: 1 addition & 0 deletions tests/test_qingping.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def test_get_time_from_bytes() -> None:
)


@pytest.mark.skipif(sys.platform.startswith("win"))
@time_machine.travel(datetime(2022, 12, 30, 16, 30, tzinfo=CET_TZ), tick=False)
def test_get_bytes_from_time() -> None:
"""Test the command to set the time."""
Expand Down
1 change: 1 addition & 0 deletions tests/test_xiaomi.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def test_get_time_from_bytes_invalid() -> None:
LYWSD02(BLEDevice("E7:2E:00:B1:38:96")).get_time_from_bytes(bytes([0x2A]))


@pytest.mark.skipif(sys.platform.startswith("win"))
@time_machine.travel(datetime(2023, 1, 7, 18, 41, tzinfo=CET_TZ), tick=False)
def test_get_bytes_from_time() -> None:
"""Test the command to set the time."""
Expand Down

0 comments on commit c33b383

Please sign in to comment.