dp3.testing.assertions ¶
Assertion helpers for DP3 module tests.
ModuleAssertions ¶
Bases: TestCase
Partial-match assertions for module hook outputs.
assert_task_emitted ¶
assert_task_emitted(tasks: Iterable[DataPointTask], *, etype: Any = _UNSET, eid: Any = _UNSET, data_points: Any = _UNSET, tags: Any = _UNSET, ttl_tokens: Any = _UNSET, delete: Any = _UNSET) -> DataPointTask
Assert that a task matching the supplied DataPointTask fields was emitted.
Source code in dp3/testing/assertions.py
assert_datapoint ¶
assert_datapoint(tasks: Iterable[DataPointTask], *, etype: Any = _UNSET, eid: Any = _UNSET, attr: Any = _UNSET, src: Any = _UNSET, v: Any = _UNSET, c: Any = _UNSET, t1: Any = _UNSET, t2: Any = _UNSET) -> DataPointBase
Assert that a datapoint matching the supplied DataPointBase fields was emitted.
Source code in dp3/testing/assertions.py
dump_value ¶
Convert pydantic values recursively to plain Python containers.