Add environment output option (#152)

Add --env option for environment output
This commit is contained in:
Dave Wapstra 2021-01-17 22:20:14 +01:00 committed by GitHub
parent b337765114
commit 140ac2e79b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 47 additions and 4 deletions

View file

@ -116,6 +116,17 @@ def test_version(runner):
assert match
def test_show_env(runner):
_add_project_files("README.md", "setup.cfg")
result = runner.invoke(cli.cli, ['init', "-vv"])
assert result.exit_code == 0
result = runner.invoke(cli.cli, ['show', "-e"])
assert result.exit_code == 0
assert "TAG=alpha" in result.output
def test_incr_default(runner):
old_version = "v201709.1004-alpha"