Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEAT: Update export page to give error for properties not in common for lumped and distributed export pages #5815

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading