<reponame>myddrin/changelog-gen
def test_main_help(cli_runner):
    result = cli_runner.invoke(["--help"])

    assert result.exit_code == 0
    expected = """Usage: changelog-gen [OPTIONS]

  Generate a change log from release_notes/* files

Options:
  --commit            Commit changes made to changelog after writing
  --allow-dirty       Don't abort if branch contains uncommited changes
  --dry-run           Don't write release notes to check for errors
  --release           Use bumpversion to tag the release
  --version-tag TEXT  Provide the desired version tag, skip auto generation.
  -v, --version       Show the version and exit.
  --help              Show this message and exit.
"""
    assert result.output == expected


def test_init_help(init_cli_runner):
    result = init_cli_runner.invoke(["--help"])

    assert result.exit_code == 0
    expected = """Usage: changelog-init [OPTIONS]

  Generate an empty CHANGELOG file

Options:
  --file-format TEXT  File format to generate
  -v, --version       Show the version and exit.
  --help              Show this message and exit.
"""
    assert result.output == expected

def test_main_help(cli_runner):
    result = cli_runner.invoke(["--help"])

    assert result.exit_code == 0
    expected = """Usage: changelog-gen [OPTIONS]

  Generate a change log from release_notes/* files

Options:
  --commit            Commit changes made to changelog after writing
  --allow-dirty       Don't abort if branch contains uncommited changes
  --dry-run           Don't write release notes to check for errors
  --release           Use bumpversion to tag the release
  --version-tag TEXT  Provide the desired version tag, skip auto generation.
  -v, --version       Show the version and exit.
  --help              Show this message and exit.
"""
    assert result.output == expected


def test_init_help(init_cli_runner):
    result = init_cli_runner.invoke(["--help"])

    assert result.exit_code == 0
    expected = """Usage: changelog-init [OPTIONS]

  Generate an empty CHANGELOG file

Options:
  --file-format TEXT  File format to generate
  -v, --version       Show the version and exit.
  --help              Show this message and exit.
"""
    assert result.output == expected
Usage: changelog-gen [OPTIONS]    Generate a change log from release_notes/* files  Options:   --commit            Commit changes made to changelog after writing   --allow-dirty       Don't abort if branch contains uncommited changes   --dry-run           Don't write release notes to check for errors   --release           Use bumpversion to tag the release   --version-tag TEXT  Provide the desired version tag, skip auto generation.   -v, --version       Show the version and exit.   --help              Show this message and exit. Usage: changelog-init [OPTIONS]    Generate an empty CHANGELOG file  Options:   --file-format TEXT  File format to generate   -v, --version       Show the version and exit.   --help              Show this message and exit.