fixed tests

This commit is contained in:
2026-05-15 20:41:05 +02:00
parent 96ce516ecf
commit 77df5d5d65
50 changed files with 1482 additions and 5089 deletions

View File

@@ -7,6 +7,7 @@ infrastructure.
from __future__ import annotations
import os
from pathlib import Path
import aiosqlite
@@ -18,6 +19,9 @@ from app.db import init_db
from app.main import create_app
from app.models.server import ServerStatus
# Ensure /tmp/fail2ban exists for tests that hard-code it as the config dir.
os.makedirs("/tmp/fail2ban", exist_ok=True)
@pytest.fixture
def test_settings(tmp_path: Path) -> Settings:
@@ -45,6 +49,7 @@ def test_settings(tmp_path: Path) -> Settings:
session_duration_minutes=60,
timezone="UTC",
log_level="debug",
session_cookie_secure=False,
)