Add dev to the list of valid release tags (#199)

* Add dev to the list of valid release tags
* Add test for --tag=dev
* Update changelog for #203

---------

Co-authored-by: Manuel Barkhau <mbarkhau@gmail.com>
This commit is contained in:
Sharon Yogev 2023-05-04 18:35:01 +03:00 committed by GitHub
parent 8dc594c055
commit a0f092c61b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 34 additions and 21 deletions

View file

@ -258,6 +258,15 @@ def test_incr_tag(runner):
assert f"Version: {new_version}\n" in result.output
def test_dev_tag(runner):
old_version = "0.1.0"
new_version = "0.1.1dev0"
result = runner.invoke(cli.cli, ['test', "-vv", old_version, SEMVER, "--patch", "--tag", "dev"])
assert result.exit_code == 0
assert f"Version: {new_version}\n" in result.output
def test_incr_tag_num(runner):
old_version = "0.1.0b0"
new_version = "0.1.0b1"