Skip to content

Commit

Permalink
Fix coverage for test_route_scope::test_websocket_invalid_path_doesnt…
Browse files Browse the repository at this point in the history
…_match
  • Loading branch information
paulo-raca committed Oct 4, 2022
1 parent c6aa28b commit e2216b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_route_scope.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ def test_websocket():

def test_websocket_invalid_path_doesnt_match():
with pytest.raises(WebSocketDisconnect):
with client.websocket_connect("/itemsx/portal-gun") as websocket:
websocket.receive_json()
with client.websocket_connect("/itemsx/portal-gun"):
raise AssertionError("websocket_connect should fail") # pragma: no cover

0 comments on commit e2216b1

Please sign in to comment.