-
-
Notifications
You must be signed in to change notification settings - Fork 92
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 an e2e test to upload a db file in standalone dashboard #675
Add an e2e test to upload a db file in standalone dashboard #675
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #675 +/- ##
==========================================
+ Coverage 62.88% 68.22% +5.33%
==========================================
Files 35 35
Lines 2250 2329 +79
==========================================
+ Hits 1415 1589 +174
+ Misses 835 740 -95 ☔ View full report in Codecov by Sentry. |
ecdf860
to
04215cd
Compare
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.
Thank you for your pull request. I left some comments.
page: Page, | ||
server_url: str, | ||
) -> None: | ||
current_dir = os.getcwd() |
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.
How about using tempfile.TemporaryDirectory
to avoid the SQLite3 file from being left when running the E2E tests on our local machines?
assert element is not None | ||
title = element.text_content() | ||
assert title is not None | ||
assert title == "Optuna Dashboard" |
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.
How about checking the number of <Card>
components that shows the study names?
Let me unassign me from the reviewer. @keisuke-umezawa Please merge this PR after you updated. |
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
NA
What does this implement/fix? Explain your changes.
Add an e2e test to upload db file in standalone dashboard