验收四路模型并优化拓扑求解性能
This commit is contained in:
1 parent
caca32a513
commit
456c29b3b6
20 files changed
+1085
-137
No files matched your search
@@ -464,9 +464,11 @@ class ComponentCatalogTests(unittest.TestCase):
|
||||
with self.subTest(model_type=model_type):
|
||||
component = self.components[model_type]
|
||||
model_parameters = parameters(model_type)
|
||||
expected_version = (
|
||||
"0.5.0" if model_type == "amesim_pnl0002" else "0.3.0"
|
||||
)
|
||||
expected_version = {
|
||||
"amesim_pnl0001": "0.4.0",
|
||||
"amesim_pnl0002": "0.6.0",
|
||||
"amesim_pnl0003": "0.4.0",
|
||||
}[model_type]
|
||||
self.assertEqual(component["modelVersion"], expected_version)
|
||||
self.assertEqual(model_parameters["mode"]["editor"], "choice")
|
||||
self.assertEqual(model_parameters["mode"]["options"], thermal_options)
|
||||
|
||||
Reference in new issue
Block a user