Skip to content

Commit

Permalink
test contents of root endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
alyssadai committed Jun 20, 2024
1 parent 4aa51e9 commit 267212b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@
from fastapi import status


def test_root(test_app, set_valid_test_federation_nodes):
"""Given a GET request to the root endpoint, Check for 200 status and expected content."""

response = test_app.get("/")

assert response.status_code == status.HTTP_200_OK
assert "Welcome to the Neurobagel REST API" in response.text
assert '<a href="/docs">documentation</a>' in response.text


def test_partially_failed_terms_fetching_handled_gracefully(
test_app, monkeypatch, set_valid_test_federation_nodes, caplog
):
Expand Down

0 comments on commit 267212b

Please sign in to comment.