Skip to content

Commit

Permalink
add test for reset
Browse files Browse the repository at this point in the history
  • Loading branch information
superstar54 committed Sep 26, 2023
1 parent dad8904 commit e15086e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/test_app_reload.py → tests/test_app.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
def test_reload(submit_app_generator, generate_qeapp_workchain):
"""Test if the GUI paramters can be reload properly"""
def test_reload_and_reset(submit_app_generator, generate_qeapp_workchain):
"""Test if the GUI paramters can be reload and reset properly"""
wkchain = generate_qeapp_workchain(
relax_type="positions", run_bands=True, run_pdos=False, spin_type="collinear"
)
Expand All @@ -11,3 +11,10 @@ def test_reload(submit_app_generator, generate_qeapp_workchain):
assert app.configure_step.workchain_settings.spin_type.value == "collinear"
assert app.configure_step.workchain_settings.properties["bands"].run.value is True
assert app.configure_step.workchain_settings.properties["pdos"].run.value is False
# new workflow, this will reset the GUI
app.work_chain_selector.value = None
# check if the value are reload correctly
assert app.configure_step.workchain_settings.relax_type.value == "positions_cell"
assert app.configure_step.workchain_settings.spin_type.value == "none"
assert app.configure_step.workchain_settings.properties["bands"].run.value is False
assert app.configure_step.workchain_settings.properties["pdos"].run.value is False

0 comments on commit e15086e

Please sign in to comment.