Skip to content

Commit

Permalink
fix: Ok
Browse files Browse the repository at this point in the history
  • Loading branch information
RamiAwar committed Mar 29, 2024
1 parent 63f21d2 commit 6add32d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions text2sql-backend/tests/api/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import pytest_asyncio
from fastapi.testclient import TestClient

from dataline.repositories.base import NotFoundError

logger = logging.getLogger(__name__)


Expand Down Expand Up @@ -95,8 +97,9 @@ async def test_get_info(client: TestClient, user_info: dict[str, str]) -> None:

@pytest.mark.asyncio
async def test_get_info_not_found(client: TestClient) -> None:
response = client.get("/settings/info")
assert response.status_code == 404
with pytest.raises(NotFoundError):
response = client.get("/settings/info")
assert response.status_code == 404


FileTuple = tuple[str, tuple[str, BytesIO, str]]
Expand Down

0 comments on commit 6add32d

Please sign in to comment.