mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-12 14:30:09 +01:00
Add environment output option (#152)
Add --env option for environment output
This commit is contained in:
parent
b337765114
commit
140ac2e79b
3 changed files with 47 additions and 4 deletions
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue