-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
Add tests for proxy_trial_artifact
#714
Conversation
storage = optuna.storages.InMemoryStorage() | ||
app = create_app(storage) | ||
status, _, body = send_request( | ||
app, | ||
"/artifacts/0/0", | ||
"GET", | ||
content_type="application/json", |
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 think that this is unnecessary because the content is not JSON.
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.
That's true 👍 Good catch.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #714 +/- ##
==========================================
+ Coverage 64.62% 65.76% +1.13%
==========================================
Files 35 35
Lines 2284 2284
==========================================
+ Hits 1476 1502 +26
+ Misses 808 782 -26 ☔ View full report in Codecov by Sentry. |
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.
LGTM!
storage = optuna.storages.InMemoryStorage() | ||
app = create_app(storage) | ||
status, _, body = send_request( | ||
app, | ||
"/artifacts/0/0", | ||
"GET", | ||
content_type="application/json", |
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.
That's true 👍 Good catch.
Contributor License Agreement
This repository (
optuna-dashboard
) and Goptuna share common code.This pull request may therefore be ported to Goptuna.
Make sure that you understand the consequences concerning licenses and check the box below if you accept the term before creating this pull request.
Reference Issues/PRs
Related to "Add tests for
proxy_study_artifact
" #712What does this implement/fix? Explain your changes.
Adding
proxy_trial_artifact
tests for bad request, not found, and success.