Skip to content

Commit

Permalink
fix new channels tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kristjanvalur committed Jul 8, 2023
1 parent 6085526 commit e7b17a7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/channels/test_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ async def test_channel_listen(ws: WebsocketCommunicator):
)

response = await ws.receive_json_from()
del response["payload"]["extensions"]
response["payload"].pop("extensions", None)
assert (
response
== NextMessage(
Expand Down Expand Up @@ -128,6 +128,7 @@ async def test_channel_listen_with_confirmation(ws: WebsocketCommunicator):
)

response = await ws.receive_json_from()
response["payload"].pop("extensions", None)
assert (
response
== NextMessage(
Expand Down Expand Up @@ -296,7 +297,7 @@ async def test_channel_listen_group(ws: WebsocketCommunicator):
},
)
response = await ws.receive_json_from()
del response["payload"]["extensions"]
response["payload"].pop("extensions", None)
assert (
response
== NextMessage(
Expand All @@ -313,7 +314,7 @@ async def test_channel_listen_group(ws: WebsocketCommunicator):
)

response = await ws.receive_json_from()
del response["payload"]["extensions"]
response["payload"].pop("extensions", None)
assert (
response
== NextMessage(
Expand Down Expand Up @@ -358,6 +359,7 @@ async def test_channel_listen_group_cm(ws: WebsocketCommunicator):
},
)
response = await ws.receive_json_from()
response["payload"].pop("extensions", None)
assert (
response
== NextMessage(
Expand All @@ -374,6 +376,7 @@ async def test_channel_listen_group_cm(ws: WebsocketCommunicator):
)

response = await ws.receive_json_from()
response["payload"].pop("extensions", None)
assert (
response
== NextMessage(
Expand Down

0 comments on commit e7b17a7

Please sign in to comment.