Skip to content
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

Merged

Conversation

keisuke-umezawa
Copy link
Member

@keisuke-umezawa keisuke-umezawa commented Oct 27, 2023

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.

  • I agree this patch may be ported to Goptuna by other Goptuna contributors.

Reference Issues/PRs

NA

What does this implement/fix? Explain your changes.

Add an e2e test to upload db file in standalone dashboard

@codecov
Copy link

codecov bot commented Oct 27, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (462f609) 62.88% compared to head (8cff2c4) 68.22%.
Report is 174 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

@keisuke-umezawa keisuke-umezawa changed the title [wip] Add load db test Add an e2e test to upload a db file in standalone dashboard Oct 27, 2023
Copy link
Member

@c-bata c-bata left a 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()
Copy link
Member

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"
Copy link
Member

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?

@c-bata c-bata removed their assignment Dec 11, 2023
@c-bata
Copy link
Member

c-bata commented Dec 11, 2023

Let me unassign me from the reviewer. @keisuke-umezawa Please merge this PR after you updated.

@keisuke-umezawa keisuke-umezawa merged commit 6b05c98 into optuna:main Jan 1, 2024
13 checks passed
@keisuke-umezawa keisuke-umezawa deleted the feature/add-db-import-test branch January 1, 2024 04:22
@keisuke-umezawa keisuke-umezawa mentioned this pull request Jan 16, 2024
1 task
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.

None yet

2 participants