Skip to content

Commit

Permalink
fixup! [2/2] Assert metadata schema location (#6516)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsotirho-ucsc committed Jan 15, 2025
1 parent fd2ac65 commit 4f2a63c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/azul/plugins/repository/tdr_hca/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ def add_entity(self,
descriptor = json.loads(row['descriptor'])
# FIXME Move validation of descriptor to the metadata API
# https://github.com/DataBiosphere/azul/issues/6299
from humancellatlas.data.metadata.api import Entity # noqa AZL131
from humancellatlas.data.metadata.api import (
Entity,
)
Entity.validate_described_by(descriptor)
self._add_manifest_entry(entity,
name=row['file_name'],
Expand Down
4 changes: 3 additions & 1 deletion test/azul_test_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,9 @@ def _patch_valid_schema_domains(cls):
'schema.staging.data.humancellatlas.org',
'schema.integration.data.humancellatlas.org',
]
from humancellatlas.data.metadata import api # noqa AZL131
from humancellatlas.data.metadata import (
api,
)
cls.addClassPatch(patch.object(target=api,
attribute='valid_schema_domains',
new=domains))
Expand Down

0 comments on commit 4f2a63c

Please sign in to comment.