Coverage for backend/flowsheetInternals/unitops/config/objects/custom_variable_config.py: 100%

3 statements  

« prev     ^ index     » next       coverage.py v7.10.7, created at 2025-11-06 23:27 +0000

1from common.config_types import * 

2from common.config_utils import * 

3 

4custom_variable_config: ObjectType = ObjectType.model_validate({ 

5 "displayType": "Custom Variable", 

6 "displayName": "Custom Variable", 

7 "ports": {}, 

8 "propertyPackagePorts":{}, 

9 "graphicObject": unitop_graphic(), 

10 "properties": { 

11 "variable": { 

12 "displayName": "Variable", 

13 "type": "numeric", 

14 "unitType": "ratio", 

15 }, 

16 }, 

17 "propertySetGroups": { 

18 "default": { 

19 "type": "stateVars", 

20 "displayName": "Properties", 

21 "stateVars": ("variable",), 

22 } 

23 }, 

24 "keyProperties": [] 

25})