-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: solve the issue where the configuration information of robots fr…
…om other organizations cannot be found (#588) * fix: get the bot config belongs to the org * chore: fix ci * chore: fix ci
- Loading branch information
1 parent
61bd4ef
commit 819dfa0
Showing
2 changed files
with
21 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
from fastapi.testclient import TestClient | ||
|
||
from env import ENVIRONMENT, WEB_URL, API_URL | ||
from petercat_utils import get_env_variable | ||
from main import app | ||
|
||
client = TestClient(app) | ||
|
||
|
||
def test_health_checker(): | ||
response = client.get("/api/health_checker") | ||
assert response.status_code == 200 | ||
assert response.json() == { | ||
'ENVIRONMENT': ENVIRONMENT, | ||
'API_URL': API_URL, | ||
'CALLBACK_URL': f'{API_URL}/api/auth/callback', | ||
'WEB_URL': WEB_URL, | ||
} | ||
"ENVIRONMENT": ENVIRONMENT, | ||
"API_URL": API_URL, | ||
"CALLBACK_URL": f"{API_URL}/api/auth/callback", | ||
"WEB_URL": WEB_URL, | ||
} |