Add webUI serving to api-server

This commit is contained in:
Matthias
2021-01-10 10:31:05 +01:00
parent 79087ba166
commit 27970b424d
6 changed files with 35 additions and 1 deletions

View File

@@ -83,7 +83,7 @@ def assert_response(response, expected_code=200, needs_cors=True):
def test_api_not_found(botclient):
ftbot, client = botclient
rc = client_post(client, f"{BASE_URI}/invalid_url")
rc = client_get(client, f"{BASE_URI}/invalid_url")
assert_response(rc, 404)
assert rc.json() == {"detail": "Not Found"}