Skip to content

Commit 473ed8f

Browse files
committed
style: reformat
1 parent 86b2267 commit 473ed8f

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/functions_framework/_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import click
1818

19-
from functions_framework import create_app, _function_registry
19+
from functions_framework import _function_registry, create_app
2020
from functions_framework._http import create_server
2121

2222

tests/test_cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def test_auto_asgi_for_aio_decorated_functions(monkeypatch):
147147

148148
assert create_asgi_app.calls == [pretend.call("my_aio_func", None, "http")]
149149
assert asgi_server.run.calls == [pretend.call("0.0.0.0", 8080)]
150-
150+
151151
_function_registry.ASGI_FUNCTIONS.clear()
152152
_function_registry.ASGI_FUNCTIONS.update(original_asgi_functions)
153153

@@ -169,6 +169,6 @@ def test_no_auto_asgi_for_regular_functions(monkeypatch):
169169

170170
assert create_app.calls == [pretend.call("regular_func", None, "http")]
171171
assert flask_server.run.calls == [pretend.call("0.0.0.0", 8080)]
172-
172+
173173
_function_registry.ASGI_FUNCTIONS.clear()
174174
_function_registry.ASGI_FUNCTIONS.update(original_asgi_functions)

tests/test_decorator_functions.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
from cloudevents import conversion as ce_conversion
2020
from cloudevents.http import CloudEvent
21+
2122
import functions_framework._function_registry as registry
2223

2324
# Conditional import for Starlette
@@ -138,7 +139,7 @@ def test_aio_decorators_register_asgi_functions():
138139
registry.REGISTRY_MAP.clear()
139140
registry.ASGI_FUNCTIONS.clear()
140141

141-
from functions_framework.aio import http, cloud_event
142+
from functions_framework.aio import cloud_event, http
142143

143144
@http
144145
async def test_http_func(request):
@@ -164,7 +165,7 @@ def test_cloud_event_sync(event):
164165

165166
assert "test_http_sync" in registry.ASGI_FUNCTIONS
166167
assert "test_cloud_event_sync" in registry.ASGI_FUNCTIONS
167-
168+
168169
registry.REGISTRY_MAP.clear()
169170
registry.REGISTRY_MAP.update(original_registry_map)
170171
registry.ASGI_FUNCTIONS.clear()

0 commit comments

Comments
 (0)