Skip to content

Commit 3f30973

Browse files
committed
make pretty
Signed-off-by: Zhiwei Liang <zhiwei.liang@zliang.me>
1 parent aa08f9d commit 3f30973

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

tests/test_static.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
import logging
22
import os
33
import sys
4+
45
from collections import Counter
56
from pathlib import Path
67
from time import gmtime, strftime
78
from urllib.parse import unquote
89

910
import pytest
11+
1012
from sanic import Sanic, text
1113
from sanic.exceptions import FileNotFound, ServerError
1214
from sanic.response import file
1315

16+
1417
pytestmark = pytest.mark.xdist_group(name="static_files")
1518

1619

tests/test_websockets.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,6 @@ async def test_ws_frame_put_skip_ctrl(opcode):
247247
assert retval is None
248248

249249

250-
251250
def _make_ws_proto():
252251
"""Create a WebsocketImplProtocol with a mock assembler that blocks.
253252
@@ -257,9 +256,7 @@ def _make_ws_proto():
257256
"""
258257
ws_proto = Mock()
259258
ws_proto.state = State.OPEN
260-
ws = WebsocketImplProtocol(
261-
ws_proto, ping_interval=None, ping_timeout=None
262-
)
259+
ws = WebsocketImplProtocol(ws_proto, ping_interval=None, ping_timeout=None)
263260

264261
get_started = asyncio.Event()
265262
get_finished = asyncio.Event()

tests/worker/test_runner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from unittest.mock import Mock, call, patch
22

33
import pytest
4+
45
from sanic.app import Sanic
56
from sanic.http.constants import HTTP
67
from sanic.server.runners import _run_server_forever, serve

0 commit comments

Comments
 (0)