From ef93eb0d5ad58808a470e150260f26df6dd1a562 Mon Sep 17 00:00:00 2001 From: samuel Date: Mon, 29 Apr 2024 11:57:14 +0200 Subject: [PATCH] FIx save_project issues in UT --- _unittest/test_21_Circuit.py | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/_unittest/test_21_Circuit.py b/_unittest/test_21_Circuit.py index d4a62fe264d..2fdce69845e 100644 --- a/_unittest/test_21_Circuit.py +++ b/_unittest/test_21_Circuit.py @@ -504,14 +504,11 @@ def test_38_browse_log_file(self): self.aedtapp.analyze() time.sleep(2) assert self.aedtapp.browse_log_file() - if is_linux and config["desktopVersion"] == "2024.1": - time.sleep(1) - self.aedtapp.odesktop.CloseAllWindows() - self.circuitprj.odesktop.CloseAllWindows() - self.aedtapp.save_project() - assert self.aedtapp.browse_log_file() - assert not self.aedtapp.browse_log_file(os.path.join(self.aedtapp.working_directory, "logfiles")) - assert self.aedtapp.browse_log_file(self.aedtapp.working_directory) + if not is_linux: + self.aedtapp.save_project() + assert self.aedtapp.browse_log_file() + assert not self.aedtapp.browse_log_file(os.path.join(self.aedtapp.working_directory, "logfiles")) + assert self.aedtapp.browse_log_file(self.aedtapp.working_directory) def test_39_export_results_circuit(self): exported_files = self.aedtapp.export_results() @@ -714,14 +711,10 @@ def test_41_assign_excitations(self, add_app): assert "PortTest" in c.excitations c.excitation_objects["PortTest"].delete() assert len(c.excitation_objects) == 0 - if is_linux and config["desktopVersion"] == "2024.1": - time.sleep(1) - self.aedtapp.odesktop.CloseAllWindows() - self.circuitprj.odesktop.CloseAllWindows() - time.sleep(1) - self.aedtapp.save_project() - c = add_app(application=Circuit, design_name="sources") - assert c.sources + if not is_linux: + self.aedtapp.save_project() + c = add_app(application=Circuit, design_name="sources") + assert c.sources def test_41_set_variable(self): self.aedtapp.variable_manager.set_variable("var_test", expression="123")