Exemple #1
0
def test_help_does_not_display_location_if_missing_entry_point():
    parser = CustomParser()

    with parser:
        pass

    assert 'Entry point\n' in parser.format_help()
Exemple #2
0
def test_help_displays_location_of_located_entry_point(tmp_directory):
    Path('pipeline.yaml').touch()

    parser = CustomParser()

    with parser:
        pass

    assert 'Entry point, defaults to pipeline.yaml\n' in parser.format_help()