File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1616
1717import click
1818
19- from functions_framework import create_app , _function_registry
19+ from functions_framework import _function_registry , create_app
2020from functions_framework ._http import create_server
2121
2222
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change 1818
1919from cloudevents import conversion as ce_conversion
2020from cloudevents .http import CloudEvent
21+
2122import 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 ()
You can’t perform that action at this time.
0 commit comments