17.1.1.8.1.4.1.5. cobra.test.test_io.test_json

Test functionalities of json.py

17.1.1.8.1.4.1.5.1. Module Contents

17.1.1.8.1.4.1.5.1.1. Functions

json_schema_v1()

test_validate_json(data_directory, json_schema_v1)

Validate file according to JSON-schema.

test_load_json_model(data_directory, mini_model)

Test the reading of JSON model.

test_save_json_model(tmpdir, mini_model, json_schema_v1)

Test the writing of JSON model.

test_reaction_bounds_json(data_directory, tmp_path)

Test reading and writing of model with inf bounds in json

cobra.test.test_io.test_json.json_schema_v1()[source]
cobra.test.test_io.test_json.test_validate_json(data_directory, json_schema_v1)[source]

Validate file according to JSON-schema.

cobra.test.test_io.test_json.test_load_json_model(data_directory, mini_model)[source]

Test the reading of JSON model.

cobra.test.test_io.test_json.test_save_json_model(tmpdir, mini_model, json_schema_v1)[source]

Test the writing of JSON model.

cobra.test.test_io.test_json.test_reaction_bounds_json(data_directory, tmp_path)[source]

Test reading and writing of model with inf bounds in json