-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Kasper Seglem (OG SUB RPE) <[email protected]> Co-authored-by: Eirik Sundby Håland (OG SUB RPE) <[email protected]> Co-authored-by: JinCheng2022 <[email protected]>
- Loading branch information
1 parent
c2e073f
commit deef26f
Showing
13 changed files
with
735 additions
and
496 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 18 additions & 7 deletions
25
tests/integration_tests/plugin_tests/test_parameter_correlation.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,26 @@ | ||
# pylint: disable=no-name-in-module | ||
from webviz_config.plugins import ParameterCorrelation | ||
from webviz_config.testing import WebvizComposite | ||
|
||
|
||
def test_parameter_correlation(dash_duo, app, shared_settings) -> None: | ||
def test_parameter_correlation(_webviz_duo: WebvizComposite, shared_settings) -> None: | ||
|
||
plugin = ParameterCorrelation( | ||
app, | ||
parameter_correlation = ParameterCorrelation( | ||
shared_settings["HM_SETTINGS"], | ||
ensembles=shared_settings["HM_ENSEMBLES"], | ||
drop_constants=True, | ||
) | ||
app.layout = plugin.layout | ||
dash_duo.start_server(app) | ||
assert dash_duo.get_logs() == [] | ||
|
||
_webviz_duo.start_server(parameter_correlation) | ||
|
||
_webviz_duo.toggle_webviz_settings_drawer() | ||
_webviz_duo.toggle_webviz_settings_group( | ||
parameter_correlation.view("paracorr").settings_group_unique_id("settings") | ||
) | ||
# Using str literals directly, not IDs from the plugin as intended because | ||
# the run test did not accept the imports | ||
|
||
my_component_id = _webviz_duo.view_settings_group_unique_component_id( | ||
"paracorr", "settings", "shared-ensemble" | ||
) | ||
_webviz_duo.wait_for_contains_text(my_component_id, "iter-0") | ||
assert _webviz_duo.get_logs() == [] |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.