We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf0eab0 commit f6756c6Copy full SHA for f6756c6
1 file changed
tests/test_cli.py
@@ -150,12 +150,8 @@ def test_asgi_cli(monkeypatch):
150
assert asgi_server.run.calls == [pretend.call("0.0.0.0", 8080)]
151
152
153
-@pytest.mark.parametrize("log_execution_id", [None, "true"])
154
-def test_cli_auto_detects_asgi_decorator(monkeypatch, log_execution_id):
+def test_cli_auto_detects_asgi_decorator():
155
"""Test that CLI auto-detects @aio decorated functions without --asgi flag."""
156
- if log_execution_id:
157
- monkeypatch.setenv("LOG_EXECUTION_ID", log_execution_id)
158
-
159
# Use the actual async_decorator.py test file which has @aio.http decorated functions
160
test_functions_dir = pathlib.Path(__file__).parent / "test_functions" / "decorators"
161
source = test_functions_dir / "async_decorator.py"
0 commit comments