实现test_mql PNL0002管路动态
This commit is contained in:
1 parent
7569917924
commit
a071896834
6 files changed
+492
No files matched your search
@@ -3860,6 +3860,7 @@ class TestMqlSystem:
|
||||
self.archive_path = archive_path or Path(__file__).resolve().parents[2] / AMESIM_ARCHIVE_RELATIVE_PATH
|
||||
self.network = SimulationNetwork(name=MODEL_NAME)
|
||||
self.pnl0001_assembly = self._build_pnl0001_assembly()
|
||||
self.pnl0002_assembly = self._build_pnl0002_assembly()
|
||||
self.pnl0003_assembly = self._build_pnl0003_assembly()
|
||||
self.pnl00r_assembly = self._build_pnl00r_assembly()
|
||||
self.node3_assembly = self._build_node3_assembly()
|
||||
@@ -3893,6 +3894,13 @@ class TestMqlSystem:
|
||||
|
||||
return build_test_mql_pnl0001_assembly(self.archive_path)
|
||||
|
||||
def _build_pnl0002_assembly(self):
|
||||
from PythonModels.systems.test_mql_pneumatic_lines import (
|
||||
build_test_mql_pnl0002_assembly,
|
||||
)
|
||||
|
||||
return build_test_mql_pnl0002_assembly(self.archive_path)
|
||||
|
||||
def _build_pnl0003_assembly(self):
|
||||
from PythonModels.systems.test_mql_pneumatic_lines import (
|
||||
build_test_mql_pnl0003_assembly,
|
||||
@@ -3935,6 +3943,10 @@ class TestMqlSystem:
|
||||
def typed_pnl0001_line_count(self) -> int:
|
||||
return len(self.pnl0001_assembly.lines)
|
||||
|
||||
@property
|
||||
def typed_pnl0002_line_count(self) -> int:
|
||||
return len(self.pnl0002_assembly.lines)
|
||||
|
||||
@property
|
||||
def typed_pnl0003_line_count(self) -> int:
|
||||
return len(self.pnl0003_assembly.lines)
|
||||
|
||||
Reference in new issue
Block a user