Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zyzzyxdonta committed Dec 14, 2023
1 parent 8315b81 commit 785766f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hermes/commands/deposit/invenio.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def __init__(self, click_ctx: click.Context, ctx: CodeMetaContext, client=None,
super().__init__(click_ctx, ctx)

self.invenio_context_path = ContextPath.parse(f"deposit.{self.platform_name}")
self.invenio_ctx = self.ctx[self.invenio_context_path]
self.invenio_ctx = None

auth_token = self.click_ctx.params.get("auth_token")
if auth_token is None:
Expand Down Expand Up @@ -250,6 +250,8 @@ def prepare(self) -> None:
self.ctx.update(self.invenio_context_path["embargo_date"], embargo_date)
self.ctx.update(self.invenio_context_path["access_conditions"], access_conditions)

self.invenio_ctx = self.ctx[self.invenio_context_path]

def map_metadata(self) -> None:
"""Map the harvested metadata onto the Invenio schema."""

Expand Down

0 comments on commit 785766f

Please sign in to comment.