feat: reexport domain schemas from hub-core
This commit is contained in:
parent
5e32d5723d
commit
493c241054
2 changed files with 26 additions and 28 deletions
|
|
@ -1,8 +1,15 @@
|
|||
from api.schemas.agent_message import MessageCreate
|
||||
from api.schemas.doi import DoIReport
|
||||
from api.schemas.domain import DomainCreate, DomainRead, DomainRename, DomainUpdate
|
||||
from api.schemas.tpsc import GDPR_WARNING_LEVELS, TPSCCatalogRead, TPSCGDPRReport
|
||||
from hub_core.schemas.agent_message import MessageCreate as CoreMessageCreate
|
||||
from hub_core.schemas.doi import DoIReport as CoreDoIReport
|
||||
from hub_core.schemas.domain import (
|
||||
DomainCreate as CoreDomainCreate,
|
||||
DomainRead as CoreDomainRead,
|
||||
DomainRename as CoreDomainRename,
|
||||
DomainUpdate as CoreDomainUpdate,
|
||||
)
|
||||
from hub_core.schemas.tpsc import (
|
||||
GDPR_WARNING_LEVELS as CORE_GDPR_WARNING_LEVELS,
|
||||
TPSCCatalogRead as CoreTPSCCatalogRead,
|
||||
|
|
@ -18,6 +25,13 @@ def test_state_hub_reexports_core_doi_schema() -> None:
|
|||
assert DoIReport is CoreDoIReport
|
||||
|
||||
|
||||
def test_state_hub_reexports_core_domain_base_schemas() -> None:
|
||||
assert DomainCreate is CoreDomainCreate
|
||||
assert DomainRead is CoreDomainRead
|
||||
assert DomainRename is CoreDomainRename
|
||||
assert DomainUpdate is CoreDomainUpdate
|
||||
|
||||
|
||||
def test_state_hub_reexports_core_tpsc_schemas() -> None:
|
||||
assert TPSCCatalogRead is CoreTPSCCatalogRead
|
||||
assert TPSCGDPRReport is CoreTPSCGDPRReport
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue