17.22. test_json

Test functionalities of I/O in JSON format.

17.22.1. Module Contents

17.22.1.1. Functions

json_schema_v1() → Dict[str, Union[str, bool, Any]]

Fixture for cobra JSON-schema.

test_validate_json(data_directory: str, json_schema_v1: Dict[str, Union[str, bool, Any]]) → None

Validate file according to JSON-schema.

test_load_json_model(data_directory: str, mini_model: Model) → None

Test the reading of JSON model.

test_save_json_model(tmpdir: str, mini_model: Model, json_schema_v1: Dict[str, Union[str, bool, Any]]) → None

Test the writing of JSON model.

test_reaction_bounds_json(data_directory: str, tmp_path: str) → None

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.

test_json.test_save_json_model(tmpdir: str, mini_model: Model, json_schema_v1: Dict[str, Union[str, bool, Any]]) → None[source]

Test the writing of JSON model.

test_json.test_reaction_bounds_json(data_directory: str, tmp_path: str) → None[source]

Test reading and writing of model with inf bounds in JSON.