make tests pass
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
c60dd310f9
commit
b5f145ecf3
|
@ -12,11 +12,7 @@ def test_healthcheck():
|
|||
assert response.status_code == HTTPStatus.OK
|
||||
assert response.text == ""
|
||||
|
||||
|
||||
def test_read_main():
|
||||
# Example of testing logging using a context manager
|
||||
with capture_logs() as cap_logs:
|
||||
response = client.get("/")
|
||||
assert {"event": "In root path", "log_level": "info"} in cap_logs
|
||||
assert response.status_code == HTTPStatus.OK
|
||||
assert response.json() == {"msg": "Hello World"}
|
||||
def test_main():
|
||||
response = client.get("/")
|
||||
assert response.status_code == HTTPStatus.OK
|
||||
assert response.text.startswith("<!DOCTYPE html>")
|
||||
|
|
Loading…
Reference in New Issue