privateGPT/tests/ui/test_ui.py
Pablo Orgaz 022bd718e3
fix: Remove global state (#1216)
* Remove all global settings state

* chore: remove autogenerated class

* chore: cleanup

* chore: merge conflicts
2023-11-12 22:20:36 +01:00

11 lines
315 B
Python

import pytest
from fastapi.testclient import TestClient
@pytest.mark.parametrize(
"test_client", [{"ui": {"enabled": True, "path": "/ui"}}], indirect=True
)
def test_ui_starts_in_the_given_endpoint(test_client: TestClient) -> None:
response = test_client.get("/ui")
assert response.status_code == 200