Skip to content

Auto schema test

Foo #

__init__ #

__init__(bar: str)

Description of the Foo class.

Parameters:

Name Type Description Default
bar str

Description of the bar argument.

required

Bar #

Bases: Foo

Docstring of the Bar class.

Parameters:

Name Type Description Default
baz int

description of the baz argument from the cls docstring instead of the init docstring.

required

test_make_schema #

test_make_schema(
    config_file: Path,
    file_regression: FileRegressionFixture,
    original_datadir: Path,
)

Test that creates a schema for a config file and saves it next to it.

(in the test folder).

test_can_run_via_cli #

test_can_run_via_cli()

Actually run the command on the repo from the CLI.

test_run_via_cli_without_errors #

test_run_via_cli_without_errors()

Checks that the command completes without errors.

test_run_via_rye_script #

test_run_via_rye_script()

Actually run the command on the repo, via the [tool.rye.scripts] entry in pyproject.toml.

test_run_via_rye_script_without_errors #

test_run_via_rye_script_without_errors()

Actually run the command on the repo, via the [tool.rye.scripts] entry in pyproject.toml.