Skip to content

fastflowtransform.testing

Runner

Bases: Protocol

Callable signature for a generic test runner.

Returns:

Name Type Description
ok bool

Whether the test passed.

message str | None

Optional human-friendly message (usually set on failure).

example_sql str | None

Optional example SQL (shown in summary on failure).

Source code in src/fastflowtransform/testing/registry.py
18
19
20
21
22
23
24
25
26
27
28
29
30
31
class Runner(Protocol):
    """Callable signature for a generic test runner.

    Returns:
        ok (bool): Whether the test passed.
        message (str | None): Optional human-friendly message (usually set on failure).
        example_sql (str | None): Optional example SQL (shown in summary on failure).
    """

    __name__: str

    def __call__(
        self, executor: BaseExecutor, table: str, column: str | None, params: dict[str, Any]
    ) -> tuple[bool, str | None, str | None]: ...