feat: terminal fullscreen, asyncpg fix, CI improvements #59
@@ -230,14 +230,16 @@ def mock_httpx_client():
|
|||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def test_app(mock_config, temp_auth_file, temp_rbac_file, mock_docker_client):
|
def test_app(mock_config, temp_auth_file, temp_rbac_file, mock_docker_client, mock_conversation_db):
|
||||||
"""Create FastAPI test client with mocked dependencies."""
|
"""Create FastAPI test client with mocked dependencies."""
|
||||||
# Reload routers to pick up new config values
|
# Reload routers to pick up new config values
|
||||||
import importlib
|
import importlib
|
||||||
|
|
||||||
import routers.files
|
import routers.files
|
||||||
|
import routers.conversation_tracker
|
||||||
|
|
||||||
importlib.reload(routers.files)
|
importlib.reload(routers.files)
|
||||||
|
importlib.reload(routers.conversation_tracker)
|
||||||
|
|
||||||
# Patch Docker client before importing main
|
# Patch Docker client before importing main
|
||||||
with patch("docker.DockerClient", return_value=mock_docker_client):
|
with patch("docker.DockerClient", return_value=mock_docker_client):
|
||||||
|
|||||||
@@ -4,7 +4,9 @@ import { svelte } from '@sveltejs/vite-plugin-svelte';
|
|||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [
|
plugins: [
|
||||||
svelte({
|
svelte({
|
||||||
hot: !process.env.VITEST,
|
hot: !process.env.VITEST ? {
|
||||||
|
preserveLocalState: true
|
||||||
|
} : false,
|
||||||
compilerOptions: {
|
compilerOptions: {
|
||||||
dev: true
|
dev: true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user