Exemplo n.º 1
0
def test_chia_plots_create_parsing_detects_help(
        arguments: typing.List[str]) -> None:
    parsed = job.parse_chia_plots_create_command_line(
        command_line=['python', 'chia', 'plots', 'create', *arguments], )

    assert parsed.help
Exemplo n.º 2
0
def test_chia_plots_create_parsing_does_not_fail(
        arguments: typing.List[str]) -> None:
    job.parse_chia_plots_create_command_line(
        command_line=['python', 'chia', 'plots', 'create', *arguments], )
Exemplo n.º 3
0
def test_chia_plots_create_parsing_identifies_errors(
        arguments: typing.List[str]) -> None:
    parsed = job.parse_chia_plots_create_command_line(
        command_line=['python', 'chia', 'plots', 'create', *arguments], )

    assert parsed.error is not None
Exemplo n.º 4
0
def test_chia_plots_create_parsing_handles_argument_forms(
        arguments: typing.List[str]) -> None:
    parsed = job.parse_chia_plots_create_command_line(
        command_line=['python', 'chia', 'plots', 'create', *arguments], )

    assert parsed.parameters['size'] == 32
Exemplo n.º 5
0
def test_chia_plots_create_parsing_does_not_fail(arguments):
    job.parse_chia_plots_create_command_line(
        command_line=['python', 'chia', 'plots', 'create', *arguments], )
Exemplo n.º 6
0
def test_chia_plots_create_parsing_detects_not_help(arguments):
    parsed = job.parse_chia_plots_create_command_line(
        command_line=['python', 'chia', 'plots', 'create', *arguments], )

    assert not parsed.help