fixed tests
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user