test(integration): harden cross-module API coverage
This commit is contained in:
@@ -83,7 +83,6 @@ from govoplan_core.core.organizations import CAPABILITY_ORGANIZATION_DIRECTORY,
|
||||
from govoplan_core.core.registry import PlatformRegistry
|
||||
from govoplan_core.core.runtime import clear_runtime, configure_runtime
|
||||
from govoplan_core.db.base import Base
|
||||
from govoplan_core.server.app import create_app
|
||||
from govoplan_core.server.config import GovoplanServerConfig
|
||||
from govoplan_core.tenancy.scope import create_scope_tables
|
||||
from govoplan_access.backend.db.models import (
|
||||
@@ -1382,6 +1381,8 @@ class AccessContractTests(unittest.TestCase):
|
||||
app_configurators=(),
|
||||
)
|
||||
with temporary_database(f"sqlite:///{root / 'test.db'}") as database:
|
||||
from govoplan_core.server.app import create_app
|
||||
|
||||
app = create_app(config)
|
||||
|
||||
create_scope_tables(database.engine)
|
||||
|
||||
Reference in New Issue
Block a user