From e15086ef4144fc2cea672c76279e915d21de6638 Mon Sep 17 00:00:00 2001 From: superstar54 Date: Tue, 26 Sep 2023 12:52:52 +0000 Subject: [PATCH] add test for reset --- tests/{test_app_reload.py => test_app.py} | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) rename tests/{test_app_reload.py => test_app.py} (50%) diff --git a/tests/test_app_reload.py b/tests/test_app.py similarity index 50% rename from tests/test_app_reload.py rename to tests/test_app.py index 250621448..c82c0005a 100644 --- a/tests/test_app_reload.py +++ b/tests/test_app.py @@ -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" ) @@ -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