refactor: update imports to use provisioning_db and gateway_rpc modules
This commit is contained in:
@@ -9,7 +9,7 @@ from uuid import UUID, uuid4
|
||||
|
||||
import pytest
|
||||
|
||||
import app.services.openclaw.agent_service as agent_service
|
||||
import app.services.openclaw.provisioning_db as agent_service
|
||||
|
||||
|
||||
@dataclass
|
||||
|
||||
@@ -8,7 +8,7 @@ from uuid import UUID, uuid4
|
||||
import pytest
|
||||
|
||||
import app.services.openclaw.provisioning as agent_provisioning
|
||||
from app.services.openclaw.agent_service import AgentLifecycleService
|
||||
from app.services.openclaw.provisioning_db import AgentLifecycleService
|
||||
from app.services.openclaw.shared import GatewayAgentIdentity
|
||||
|
||||
|
||||
|
||||
@@ -13,8 +13,8 @@ from fastapi import HTTPException, status
|
||||
|
||||
import app.services.openclaw.coordination_service as coordination_lifecycle
|
||||
import app.services.openclaw.onboarding_service as onboarding_lifecycle
|
||||
from app.integrations.openclaw_gateway import GatewayConfig as GatewayClientConfig
|
||||
from app.integrations.openclaw_gateway import OpenClawGatewayError
|
||||
from app.services.openclaw.gateway_rpc import GatewayConfig as GatewayClientConfig
|
||||
from app.services.openclaw.gateway_rpc import OpenClawGatewayError
|
||||
from app.services.openclaw.shared import GatewayAgentIdentity
|
||||
|
||||
|
||||
|
||||
@@ -27,6 +27,6 @@ def test_no_openclaw_package_barrel_imports() -> None:
|
||||
|
||||
assert not violations, (
|
||||
"Use concrete OpenClaw modules (for example "
|
||||
"`from app.services.openclaw.agent_service import ...`) instead of package imports. "
|
||||
"`from app.services.openclaw.provisioning_db import ...`) instead of package imports. "
|
||||
f"Violations: {', '.join(violations)}"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user