feat: reexport TPSC schemas from hub-core
This commit is contained in:
parent
70b264a37a
commit
5e32d5723d
2 changed files with 40 additions and 114 deletions
|
|
@ -1,7 +1,13 @@
|
|||
from api.schemas.agent_message import MessageCreate
|
||||
from api.schemas.doi import DoIReport
|
||||
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.tpsc import (
|
||||
GDPR_WARNING_LEVELS as CORE_GDPR_WARNING_LEVELS,
|
||||
TPSCCatalogRead as CoreTPSCCatalogRead,
|
||||
TPSCGDPRReport as CoreTPSCGDPRReport,
|
||||
)
|
||||
|
||||
|
||||
def test_state_hub_reexports_core_message_schema() -> None:
|
||||
|
|
@ -10,3 +16,9 @@ def test_state_hub_reexports_core_message_schema() -> None:
|
|||
|
||||
def test_state_hub_reexports_core_doi_schema() -> None:
|
||||
assert DoIReport is CoreDoIReport
|
||||
|
||||
|
||||
def test_state_hub_reexports_core_tpsc_schemas() -> None:
|
||||
assert TPSCCatalogRead is CoreTPSCCatalogRead
|
||||
assert TPSCGDPRReport is CoreTPSCGDPRReport
|
||||
assert GDPR_WARNING_LEVELS is CORE_GDPR_WARNING_LEVELS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue