bundle.testing.tools.decorators.data ==================================== .. py:module:: bundle.testing.tools.decorators.data Attributes ---------- .. autoapisummary:: bundle.testing.tools.decorators.data.logger Functions --------- .. autoapisummary:: bundle.testing.tools.decorators.data.data Module Contents --------------- .. py:data:: logger .. py:function:: data(tmp_dir: pathlib.Path, ref_dir: str | pathlib.Path, cprofile_folder: str | pathlib.Path | None = None) Decorator for testing bundle Data model serialization and schema validation. Wraps test functions to perform round-trip dict and JSON serialization tests, and validates the model against its JSON schema. Tests are profiled using cprofile. Results and errors are logged, with provision for updating reference data. :param tmp_dir: Temporary directory for test outputs. :type tmp_dir: Path :param ref_dir: Reference directory for baseline data. :type ref_dir: str | Path :param cprofile_folder: Directory for cprofile output. :type cprofile_folder: str | Path | None :returns: A decorator that wraps test functions to extend their functionality with serialization and validation tests. :rtype: Decorator