diff options
author | Ronny Pfannschmidt <opensource@ronnypfannschmidt.de> | 2018-05-22 06:31:39 +0200 |
---|---|---|
committer | Ronny Pfannschmidt <opensource@ronnypfannschmidt.de> | 2018-05-22 06:42:50 +0200 |
commit | c50979abe623f3c41789b19db8cdf9ccc03c76e9 (patch) | |
tree | 6068f86e70105fe47ff9b2e33c3f327d31e0bff1 /testing | |
parent | 7cd319baaa1635a46d7325a8f8c7a42235bd0634 (diff) | |
download | setuptools-scm-c50979abe623f3c41789b19db8cdf9ccc03c76e9.tar.gz |
add a test addressing #266 demonstraing its not a git issue
Diffstat (limited to 'testing')
-rw-r--r-- | testing/test_git.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testing/test_git.py b/testing/test_git.py index be7e0a4..9530400 100644 --- a/testing/test_git.py +++ b/testing/test_git.py @@ -16,6 +16,15 @@ def wd(wd): return wd +@pytest.mark.parametrize( + "given, tag, number, node, dirty", + [("3.3.1-rc26-0-g9df187b", "3.3.1-rc26", 0, "g9df187b", False)], +) +def test_parse_describe_output(given, tag, number, node, dirty): + parsed = git._git_parse_describe(given) + assert parsed == (tag, number, node, dirty) + + def test_version_from_git(wd): assert wd.version == "0.1.dev0" |