We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73a9009 commit 5e8ad37Copy full SHA for 5e8ad37
1 file changed
src/test_app.py
@@ -3,7 +3,7 @@
3
import pytest
4
5
# Assuming your FastAPI code is in a file named `main.py`
6
-from .main import app, ENV_MESSAGE
+from .main import app, get_env_message
7
8
client = TestClient(app)
9
@@ -15,7 +15,7 @@ def test_home_view():
15
"hello": "world",
16
"cron": "smooth-cronjob",
17
"watchtower": "working",
18
- "env-message": ENV_MESSAGE,
+ "env-message": get_env_message(),
19
}
20
21
@pytest.fixture(autouse=True)
0 commit comments