@@ -63,8 +63,7 @@ def test_invalid_function_definition_missing_function_file():
63
63
create_asgi_app (target , source )
64
64
65
65
assert re .match (
66
- r"File .* that is expected to define function doesn't exist" , str (
67
- excinfo .value )
66
+ r"File .* that is expected to define function doesn't exist" , str (excinfo .value )
68
67
)
69
68
70
69
@@ -98,8 +97,7 @@ def test_asgi_background_event_not_supported():
98
97
async def test_lazy_asgi_app (monkeypatch ):
99
98
actual_app = AsyncMock ()
100
99
create_asgi_app_mock = Mock (return_value = actual_app )
101
- monkeypatch .setattr (
102
- "functions_framework.aio.create_asgi_app" , create_asgi_app_mock )
100
+ monkeypatch .setattr ("functions_framework.aio.create_asgi_app" , create_asgi_app_mock )
103
101
104
102
# Test that it's lazy
105
103
target , source , signature_type = "func" , "source.py" , "http"
@@ -119,8 +117,7 @@ async def test_lazy_asgi_app(monkeypatch):
119
117
assert lazy_app .app is actual_app
120
118
assert lazy_app ._app_initialized is True
121
119
assert create_asgi_app_mock .call_count == 1
122
- assert create_asgi_app_mock .call_args == call (
123
- target , source , signature_type )
120
+ assert create_asgi_app_mock .call_args == call (target , source , signature_type )
124
121
125
122
# Verify the app was called
126
123
actual_app .assert_called_once_with (scope , receive , send )
@@ -132,8 +129,7 @@ async def test_lazy_asgi_app(monkeypatch):
132
129
await lazy_app (scope , receive , send )
133
130
134
131
assert create_asgi_app_mock .call_count == 0 # Should not create app again
135
- actual_app .assert_called_once_with (
136
- scope , receive , send ) # Should be called again
132
+ actual_app .assert_called_once_with (scope , receive , send ) # Should be called again
137
133
138
134
139
135
@pytest .mark .asyncio
0 commit comments