mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 13:55:41 +01:00
fix: Remove global state (#1216)
* Remove all global settings state * chore: remove autogenerated class * chore: cleanup * chore: merge conflicts
This commit is contained in:
parent
f394ca61bb
commit
022bd718e3
24 changed files with 286 additions and 190 deletions
10
tests/ui/test_ui.py
Normal file
10
tests/ui/test_ui.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue