Skip to content

Fix #454: Add end-to-end tests for the plugin-related SoftwareMetadata API#456

Draft
sdruskat wants to merge 46 commits intorefactor/423-implement-public-apifrom
feature/454-e2e-test-plugin-api
Draft

Fix #454: Add end-to-end tests for the plugin-related SoftwareMetadata API#456
sdruskat wants to merge 46 commits intorefactor/423-implement-public-apifrom
feature/454-e2e-test-plugin-api

Conversation

@sdruskat
Copy link
Contributor

No description provided.

@sdruskat sdruskat changed the base branch from develop to refactor/data-model November 21, 2025 10:12
@sdruskat sdruskat changed the base branch from refactor/data-model to refactor/423-implement-public-api November 21, 2025 10:17
@sdruskat sdruskat closed this Nov 21, 2025
@sdruskat sdruskat force-pushed the feature/454-e2e-test-plugin-api branch from f45d9b4 to 9be8041 Compare November 21, 2025 10:23
@sdruskat sdruskat deleted the feature/454-e2e-test-plugin-api branch November 21, 2025 10:24
@sdruskat sdruskat restored the feature/454-e2e-test-plugin-api branch November 21, 2025 10:24
@sdruskat sdruskat reopened this Nov 21, 2025
@sdruskat
Copy link
Contributor Author

Re-opening after rebase on correct branch.

try:
monkeypatch.setattr(context_manager.HermesContext.__init__, "__defaults__", (tmp_path.cwd(),))
cli.main()
except SystemExit:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like the use of SystemExit, can't we just use the code directly and skip the try

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really, cli.main() always calls sys.exit().
On feature/454-e2e-deposit I've changed the try-except-finally to read:

try:
    monkeypatch.setattr(context_manager.HermesContext.__init__, "__defaults__", (tmp_path.cwd(),))
    cli.main()
except SystemExit as e:
    if e.code != 0:
        raise e
finally:
    # validation of results

I hope that this is better.

try:
monkeypatch.setattr(context_manager.HermesContext.__init__, "__defaults__", (tmp_path.cwd(),))
cli.main()
except SystemExit:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

notactuallyfinn and others added 25 commits February 13, 2026 13:54
Merged implementation for curate step back into the feature branches base branch.
Merged features for process (new data model) back into the feature branches base branch.
Merged implementation for process and deposit step back into the feature branches base branch.
Merged implementation for postprocess step back into the feature branches base branch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants