Skip to content

Commit 5e8ad37

Browse files
Updated the env message function
1 parent 73a9009 commit 5e8ad37

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/test_app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import pytest
44

55
# Assuming your FastAPI code is in a file named `main.py`
6-
from .main import app, ENV_MESSAGE
6+
from .main import app, get_env_message
77

88
client = TestClient(app)
99

@@ -15,7 +15,7 @@ def test_home_view():
1515
"hello": "world",
1616
"cron": "smooth-cronjob",
1717
"watchtower": "working",
18-
"env-message": ENV_MESSAGE,
18+
"env-message": get_env_message(),
1919
}
2020

2121
@pytest.fixture(autouse=True)

0 commit comments

Comments
 (0)