Интегрирован wesp в сайт
CI / quality (push) Canceled after 0s

This commit is contained in:
влад
2026-07-17 12:57:18 +03:00
parent 5dfa06ddbe
commit 355c0ef9f1
883 changed files with 194576 additions and 177 deletions
+19
View File
@@ -0,0 +1,19 @@
"""Общие хелперы для автотестов WESP."""
from __future__ import annotations
from typing import Type
from flask import Flask
from app import create_app
from config import TestingConfig
def create_test_app(
config_class: Type = TestingConfig,
*,
run_migrations: bool = False,
) -> Flask:
"""Flask app для тестов (по умолчанию TestingConfig + bypass setup guard)."""
return create_app(config_class, run_migrations=run_migrations)