Skip to content

Commit

Permalink
TST: Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mgxd committed Dec 15, 2022
1 parent c912a47 commit fa25fb4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion migas_server/tests/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,15 @@ def client(event_loop: asyncio.BaseEventLoop) -> Iterator[TestClient]:
yield c


def test_server_startup_shutdown(client: TestClient) -> None:
def test_server_landing(client: TestClient) -> None:
res = client.get("/")
assert res.status_code == 200
assert 'html' in res.headers.get("Content-Type")


def test_server_info(client: TestClient) -> None:
res = client.get("/info")
assert res.status_code == 200
assert res.json()["package"] == "migas"


Expand Down

0 comments on commit fa25fb4

Please sign in to comment.