-
Notifications
You must be signed in to change notification settings - Fork 7
Fix #454: Add end-to-end tests for the plugin-related SoftwareMetadata API
#456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: refactor/423-implement-public-api
Are you sure you want to change the base?
Fix #454: Add end-to-end tests for the plugin-related SoftwareMetadata API
#456
Conversation
f45d9b4 to
9be8041
Compare
|
Re-opening after rebase on correct branch. |
| try: | ||
| monkeypatch.setattr(context_manager.HermesContext.__init__, "__defaults__", (tmp_path.cwd(),)) | ||
| cli.main() | ||
| except SystemExit: |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 resultsI hope that this is better.
| try: | ||
| monkeypatch.setattr(context_manager.HermesContext.__init__, "__defaults__", (tmp_path.cwd(),)) | ||
| cli.main() | ||
| except SystemExit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
No description provided.