summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorRonny Pfannschmidt <opensource@ronnypfannschmidt.de>2018-07-23 13:20:19 +0200
committerRonny Pfannschmidt <opensource@ronnypfannschmidt.de>2018-07-23 13:20:19 +0200
commitafaedeb6e2029fac81cb70528c6c5208a3dd0eba (patch)
treee59c5d3a918c8fbf70159a78290718d6c851ed77 /testing
parent6321133e8086ad0eddd0299f52ff4ddfd2743eb2 (diff)
downloadsetuptools-scm-afaedeb6e2029fac81cb70528c6c5208a3dd0eba.tar.gz
add a test for a rc version oddity i experienced in the last release, its already fixed
Diffstat (limited to 'testing')
-rw-r--r--testing/test_git.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/testing/test_git.py b/testing/test_git.py
index 9530400..dd5f817 100644
--- a/testing/test_git.py
+++ b/testing/test_git.py
@@ -18,7 +18,10 @@ def wd(wd):
@pytest.mark.parametrize(
"given, tag, number, node, dirty",
- [("3.3.1-rc26-0-g9df187b", "3.3.1-rc26", 0, "g9df187b", False)],
+ [
+ ("3.3.1-rc26-0-g9df187b", "3.3.1-rc26", 0, "g9df187b", False),
+ ("17.33.0-rc-17-g38c3047c0", "17.33.0-rc", 17, "g38c3047c0", False),
+ ],
)
def test_parse_describe_output(given, tag, number, node, dirty):
parsed = git._git_parse_describe(given)
@@ -48,6 +51,10 @@ def test_version_from_git(wd):
wd("git tag version-0.2.post210+gbe48adfpost3+g0cc25f2")
assert wd.version.startswith("0.2")
+ wd.commit_testfile()
+ wd("git tag 17.33.0-rc")
+ assert wd.version == "17.33.0rc0"
+
@pytest.mark.issue(179)
def test_unicode_version_scheme(wd):