Skip to content

Commit

Permalink
Fix code checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Hannes Breul committed May 12, 2022
1 parent 8c2bf2a commit 377ff1c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[pytest]
asyncio_mode = auto
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ wheel
asgi-lifespan
async-generator; python_version<'3.7'
autoflake
black==21.9b0
black==22.3.0
flake8
flake8-bugbear
flake8-comprehensions
Expand Down
4 changes: 2 additions & 2 deletions tests/test_subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ def fixture_path(subscriptions: typing.Any) -> str:


def _init(ws: WebSocket) -> None:
ws.send_json({"type": "connection_init"})
ws.send_json({"type": "connection_init"}) # type: ignore
assert ws.receive_json() == {"type": "connection_ack"}


def _terminate(ws: WebSocket) -> None:
ws.send_json({"type": "connection_terminate"})
ws.send_json({"type": "connection_terminate"}) # type: ignore


def test_protocol_connect_disconnect(
Expand Down

0 comments on commit 377ff1c

Please sign in to comment.