Skip to content

Commit 0f34d79

Browse files
Samuelopez-ansysSMoraisAnsysPipKat
authored
Apply suggestions from code review
Co-authored-by: Sébastien Morais <[email protected]> Co-authored-by: Kathy Pippert <[email protected]>
1 parent e560c24 commit 0f34d79

7 files changed

+11
-11
lines changed

_unittest/test_21_Circuit.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def test_19b_create_eye_setups(self):
240240
assert self.aedtapp.create_setup(setup_name, "NexximAMI")
241241

242242
@pytest.mark.skipif(
243-
is_linux and config["desktopVersion"] == "2024.1", reason="Project with multiple Circuit designs not valid"
243+
is_linux and config["desktopVersion"] == "2024.1", reason="Project with multiple circuit designs is not working."
244244
)
245245
def test_20a_create_ami_plots(self, add_app):
246246
ami_design = add_app(ami_project, design_name="Models Init Only", application=Circuit, subfolder=test_subfolder)
@@ -792,7 +792,7 @@ def test_43_create_and_change_prop_text(self):
792792
assert self.aedtapp.modeler.create_text("text test", "1000mil", "-2000mil")
793793

794794
@pytest.mark.skipif(config["NonGraphical"], reason="Change property doesn't work in non-graphical mode.")
795-
@pytest.mark.skipif(is_linux and config["desktopVersion"] == "2024.1", reason="Schematic has to closed.")
795+
@pytest.mark.skipif(is_linux and config["desktopVersion"] == "2024.1", reason="Schematic has to be closed.")
796796
def test_44_change_text_property(self):
797797
self.aedtapp.set_active_design("text")
798798
text_id = self.aedtapp.oeditor.GetAllGraphics()[0].split("@")[1]
@@ -806,7 +806,7 @@ def test_44_change_text_property(self):
806806
assert not self.aedtapp.modeler.change_text_property(text_id, "Invalid", {})
807807

808808
@pytest.mark.skipif(config["NonGraphical"], reason="Change property doesn't work in non-graphical mode.")
809-
@pytest.mark.skipif(is_linux and config["desktopVersion"] == "2024.1", reason="Schematic has to closed.")
809+
@pytest.mark.skipif(is_linux and config["desktopVersion"] == "2024.1", reason="Schematic has to be closed.")
810810
def test_45_create_circuit_from_multizone_layout(self, add_edb):
811811
edb = add_edb(project_name="multi_zone_project")
812812
common_reference_net = "gnd"
@@ -855,7 +855,7 @@ def test_47_automatic_lna(self):
855855
)
856856
assert status
857857

858-
@pytest.mark.skipif(config["NonGraphical"] and is_linux, reason="Method not working in Linux and Non graphical")
858+
@pytest.mark.skipif(config["NonGraphical"] and is_linux, reason="Method is not working in Linux and non-graphical mode.")
859859
def test_48_automatic_tdr(self):
860860
touchstone_file = os.path.join(local_path, "example_models", test_subfolder, touchstone_custom)
861861

_unittest/test_22_Circuit_DynamicLink.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def test_05_set_sim_option_on_hfss_subcircuit(self):
105105
assert self.aedtapp.modeler.schematic.set_sim_option_on_hfss_subcircuit(hfss_comp, option="interpolate")
106106
assert not self.aedtapp.modeler.schematic.set_sim_option_on_hfss_subcircuit(hfss_comp, option="not_good")
107107

108-
@pytest.mark.skipif(is_ironpython, reason="Skipped because Desktop is crashing")
108+
@pytest.mark.skipif(is_ironpython, reason="Skipped because AEDT is crashing.")
109109
@pytest.mark.skipif(config["NonGraphical"] and is_linux, reason="Method not working in Linux and Non graphical")
110110
def test_06_set_sim_solution_on_hfss_subcircuit(self):
111111
hfss_comp = "CompInst@uUSB;87;3"

_unittest/test_28_Maxwell3D.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -869,8 +869,8 @@ def test_53_assign_layout_force(self, layout_comp):
869869
nets_layers = {"1V0": "Bottom Solder"}
870870
assert layout_comp.assign_layout_force(nets_layers, "LC1_1")
871871

872-
@pytest.mark.skipif(desktop_version < "2023.2" or is_linux, reason="Method available in beta from 2023.2")
873-
@pytest.mark.skipif(is_linux, reason="EDB object is not loaded")
872+
@pytest.mark.skipif(desktop_version < "2023.2" or is_linux, reason="Method is available in beta in 2023.2 and later.")
873+
@pytest.mark.skipif(is_linux, reason="EDB object is not loaded.")
874874
def test_54_enable_harmonic_force_layout(self, layout_comp):
875875
comp = layout_comp.modeler.user_defined_components["LC1_1"]
876876
layers = list(comp.layout_component.layers.keys())

_unittest/test_41_3dlayout_modeler.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ def test_41_test_create_polygon(self):
654654

655655
@pytest.mark.skipif(not config["use_grpc"], reason="Not running in COM mode")
656656
@pytest.mark.skipif(config["desktopVersion"] < "2023.2", reason="Working only from 2023 R2")
657-
@pytest.mark.skipif(is_linux, reason="PyEDB failing in Linux")
657+
@pytest.mark.skipif(is_linux, reason="PyEDB is failing in Linux.")
658658
def test_42_post_processing(self, add_app):
659659
test_post1 = add_app(project_name=test_post, application=Maxwell3d, subfolder=test_subfolder)
660660
assert test_post1.post.create_fieldplot_layers(

_unittest_solvers/test_00_analyze.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ def test_07_export_maxwell_fields(self, m3dtransient):
431431
new_setup.props = setup.props
432432
new_setup.update()
433433

434-
@pytest.mark.skipif(is_linux, reason="SPISIM not working in linux.")
434+
@pytest.mark.skipif(is_linux, reason="SPISIM is not working in Linux.")
435435
def test_08_compute_erl(self, circuit_erl):
436436
touchstone_file = circuit_erl.export_touchstone()
437437
spisim = SpiSim(touchstone_file)

pyaedt/application/Design.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3333,7 +3333,7 @@ def _insert_design(self, design_type, design_name=None):
33333333
if new_design is None: # pragma: no cover
33343334
new_design = self.desktop_class.active_design(self.oproject, unique_design_name, self.design_type)
33353335
if new_design is None:
3336-
self.logger.error("Fail to create new design.")
3336+
self.logger.error("Failed to create design.")
33373337
return
33383338
self.logger.info("Added design '%s' of type %s.", unique_design_name, design_type)
33393339
name = new_design.GetName()

pyaedt/desktop.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ def active_design(self, project_object, name=None, design_type=None):
720720
AEDT project object.
721721
722722
name : str, optional
723-
Name of the active design to make active.
723+
Name of the design to make active.
724724
The default is ``None``, in which case the active design is returned.
725725
726726
design_type : str, optional

0 commit comments

Comments
 (0)