优化仿真求解性能并修复流量闭合问题(初版)
This commit is contained in:
1 parent
57b459bc72
commit
5332a788f3
55 files changed
+8973
-549
No files matched your search
@@ -6,6 +6,7 @@ from app.simulation.benchmark_performance import (
|
||||
_duration_summary,
|
||||
_load_factory_xml,
|
||||
_named_value,
|
||||
_parse_arguments,
|
||||
_serialize_result_event,
|
||||
)
|
||||
|
||||
@@ -53,6 +54,17 @@ class PerformanceBenchmarkToolTests(unittest.TestCase):
|
||||
self.assertIn(b'"event":"result"', payload)
|
||||
self.assertIn(b'"result":{"success":true', payload)
|
||||
|
||||
def test_cache_ab_flag_is_explicit(self) -> None:
|
||||
arguments = _parse_arguments(
|
||||
[
|
||||
"--factory",
|
||||
"sample=tests.test_performance_benchmark:sample_xml_factory",
|
||||
"--disable-property-cache",
|
||||
]
|
||||
)
|
||||
|
||||
self.assertTrue(arguments.disable_property_cache)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user