fix tax log

This commit is contained in:
2026-02-19 16:05:59 +03:00
parent 2c820e103a
commit c2a4c8062a
38 changed files with 4414 additions and 40 deletions

View File

@@ -1,3 +1,10 @@
from . import plugins, tasks, settings, connections, environments, mappings, migration, git, storage, admin
# Lazy loading of route modules to avoid import issues in tests
# This allows tests to import routes without triggering all module imports
__all__ = ['plugins', 'tasks', 'settings', 'connections', 'environments', 'mappings', 'migration', 'git', 'storage', 'admin']
def __getattr__(name):
if name in __all__:
import importlib
return importlib.import_module(f".{name}", __name__)
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")

View File

@@ -7,12 +7,14 @@
# @NOTE: Only export services that don't cause circular imports
# @NOTE: GitService, AuthService, LLMProviderService have circular import issues - import directly when needed
# Only export services that don't cause circular imports
from .mapping_service import MappingService
from .resource_service import ResourceService
# Lazy loading to avoid import issues in tests
__all__ = ['MappingService', 'ResourceService']
__all__ = [
'MappingService',
'ResourceService',
]
# [/DEF:backend.src.services:Module]
def __getattr__(name):
if name == 'MappingService':
from .mapping_service import MappingService
return MappingService
if name == 'ResourceService':
from .resource_service import ResourceService
return ResourceService
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")