Добавлены тесты для критических фиксов (lock_check, UniqueViolation, escName, idx_one_running)

This commit is contained in:
2026-07-31 18:28:49 +04:00
parent c1e7c4f9aa
commit 4d3ce74c03
5 changed files with 172 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
from pathlib import Path
import sys
import pytest
# Make `site/` importable as top-level modules: app, routes, db, operations, ...
SITE_DIR = Path(__file__).resolve().parents[1] / "site"
if str(SITE_DIR) not in sys.path:
sys.path.insert(0, str(SITE_DIR))
@pytest.fixture
def app_client():
from app import app
app.config.update(TESTING=True)
with app.test_client() as client:
yield client