实现test_mql PNL0003与PNL00R管路
This commit is contained in:
1 parent
c4c1b35dee
commit
568be2e632
6 files changed
+844
-68
No files matched your search
@@ -3860,6 +3860,8 @@ 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.pnl0003_assembly = self._build_pnl0003_assembly()
|
||||
self.pnl00r_assembly = self._build_pnl00r_assembly()
|
||||
self.node3_assembly = self._build_node3_assembly()
|
||||
self.pneumatic_assembly = self._build_pneumatic_assembly()
|
||||
pneumatic_components = self._pneumatic_components_by_alias()
|
||||
@@ -3890,6 +3892,20 @@ class TestMqlSystem:
|
||||
|
||||
return build_test_mql_pnl0001_assembly(self.archive_path)
|
||||
|
||||
def _build_pnl0003_assembly(self):
|
||||
from PythonModels.systems.test_mql_pneumatic_lines import (
|
||||
build_test_mql_pnl0003_assembly,
|
||||
)
|
||||
|
||||
return build_test_mql_pnl0003_assembly(self.archive_path)
|
||||
|
||||
def _build_pnl00r_assembly(self):
|
||||
from PythonModels.systems.test_mql_pneumatic_lines import (
|
||||
build_test_mql_pnl00r_assembly,
|
||||
)
|
||||
|
||||
return build_test_mql_pnl00r_assembly(self.archive_path)
|
||||
|
||||
@staticmethod
|
||||
def _build_node3_assembly():
|
||||
from PythonModels.systems.test_mql_nodes import build_test_mql_node3_assembly
|
||||
@@ -3912,6 +3928,14 @@ class TestMqlSystem:
|
||||
def typed_pnl0001_line_count(self) -> int:
|
||||
return len(self.pnl0001_assembly.lines)
|
||||
|
||||
@property
|
||||
def typed_pnl0003_line_count(self) -> int:
|
||||
return len(self.pnl0003_assembly.lines)
|
||||
|
||||
@property
|
||||
def typed_pnl00r_line_count(self) -> int:
|
||||
return len(self.pnl00r_assembly.lines)
|
||||
|
||||
@property
|
||||
def typed_node3_count(self) -> int:
|
||||
return len(self.node3_assembly)
|
||||
|
||||
Reference in new issue
Block a user