17.22. test_json
¶
Test functionalities of I/O in JSON format.
17.22.1. Module Contents¶
17.22.1.1. Functions¶
|
Fixture for cobra JSON-schema. |
|
Validate file according to JSON-schema. |
|
Test the reading of JSON model. |
|
Test the writing of JSON model. |
|
Test reading and writing of model with inf bounds in JSON. |
-
test_json.
json_schema_v1
() → Dict[str, Union[str, bool, Any]][source]¶ Fixture for cobra JSON-schema.
-
test_json.
test_validate_json
(data_directory: str, json_schema_v1: Dict[str, Union[str, bool, Any]]) → None[source]¶ Validate file according to JSON-schema.
-
test_json.
test_load_json_model
(data_directory: str, mini_model: Model) → None[source]¶ Test the reading of JSON model.