Unit Tests#
Use
pytestfor all unit tests.Tests go in
tests/following mirrored package paths andtest_*.pynaming.Use
@pytest.mark.parametrizewhen testing over multiple forms.Track test coverage via Codecov: https://app.codecov.io/github/uibcdf/MolSysMT
Validate tutorials optionally using
nbvalorpytest + papermill.+ELLIPSISandNORMALIZE_WHITESPACEdoctest flags are configured inpytest.ini, so they do not need to be repeated in each docstring.Prefer
MolSysBuilderfor small deterministic converter fixtures when the expected molecular truth must be declared explicitly before exporting to a file or external form. This avoids deriving assertions from the same format that is being tested.