Skip to content

Commit

Permalink
FEAT: Update export page to give error for properties not in common f…
Browse files Browse the repository at this point in the history
…or lumped and distributed export pages (#5815)
  • Loading branch information
ramin4667 authored Feb 21, 2025
1 parent 7cc111c commit ecfdc79
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@
@pytest.mark.skipif(config["desktopVersion"] < "2025.2", reason="Skipped on versions earlier than 2025.2")
class TestClass:

def test_lumped_export_to_aedt(self, lumped_design):
with pytest.raises(RuntimeError) as info:
lumped_design.export_to_aedt.insert_circuit_design = True
assert info.value.args[0] == "This property is not applicable to lumped designs in the export page"

def test_distributed_export_to_aedt(self, distributed_design):
with pytest.raises(RuntimeError) as info:
distributed_design.export_to_aedt.part_libraries = PartLibraries.LUMPED
assert info.value.args[0] == "This property is not applicable to distributed designs in the export page"

def test_modelithics_include_interconnect_enabled(self, lumped_design):
assert lumped_design.export_to_aedt.modelithics_include_interconnect_enabled
lumped_design.export_to_aedt.modelithics_include_interconnect_enabled = False
Expand Down

0 comments on commit ecfdc79

Please sign in to comment.