示例#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
示例#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], )
示例#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
示例#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
示例#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], )
示例#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