pydantic_sweep.testing

Classes

CLITests

Module Contents

class pydantic_sweep.testing.CLITests[source]
abstractmethod implementation() tuple[type[pydantic_sweep.cli.CLI], dict][source]

This fixture must be overridden in the subclass.

test_cli_roundtrip(monkeypatch: pytest.MonkeyPatch, implementation: tuple[type[pydantic_sweep.cli.CLI], dict]) None[source]

Test that the CLI can roundtrip a model.