Skip to content

Commit 51c64f5

Browse files
authored
Merge pull request #182 from DakaraProject/fix/tests-macos-py312
Fix test failures
2 parents e055d93 + 464983c commit 51c64f5

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

dakara_server/playlist/tests/test_device.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,9 @@ async def test_send_playlist_entry_failed_none(
362362
assert player_new == player
363363

364364
# check there are no other messages
365-
done = await communicator.receive_nothing()
366-
assert done
365+
with pytest.raises(ValueError):
366+
done = await communicator.receive_nothing()
367+
assert done
367368

368369
# no need to close connection
369370

@@ -595,8 +596,9 @@ async def test_send_command_unknown_failed(
595596
assert player_new == player
596597

597598
# check there are no other messages
598-
done = await communicator.receive_nothing()
599-
assert done
599+
with pytest.raises(ValueError):
600+
done = await communicator.receive_nothing()
601+
assert done
600602

601603
# no need to close connection
602604

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
asgiref>=3.9.1,<3.10.0 # to remove after updating channels
12
APScheduler>=3.11.0,<3.12.0
23
channels>=4.2.0,<4.3.0
34
daphne>=4.1.2,<4.2.0

0 commit comments

Comments
 (0)