mass.test
¶
Module containing functions for testing various mass
methods.
There is the test_all()
function to run all tests. Note that the testing
requirements must be installed (e.g. pytest
) for this function to work.
There are also functions for viewing and loading pre-built example
MassModel
objects via the json
or
sbml
submodules, as well as functions to view
Escher
maps that correspond to certain pre-defined models.
Package Contents¶
Functions¶
|
Return a |
Print the test models that can be loaded. |
|
Print the test models that can be loaded. |
|
|
Alias for running all unit-tests on installed |
-
mass.test.
create_test_model
(model_name, io='json')[source]¶ Return a
mass.MassModel
for testing.- Parameters
model_name (str) – The name of the test model to load. Valid model names can be printed and viewed using the
view_test_models()
function.io (str
{'sbml', 'json'}
) – A string representing themass.io
module to use to load the model. Default is"sbml"
. Case sensitive.
- Returns
The loaded
MassModel
- Return type