summaryrefslogtreecommitdiff
path: root/testing/test_config.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/test_config.py')
-rw-r--r--testing/test_config.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/testing/test_config.py b/testing/test_config.py
index b8ea265..49f1d7a 100644
--- a/testing/test_config.py
+++ b/testing/test_config.py
@@ -11,6 +11,10 @@ import pytest
("apache-arrow-0.9.0", "0.9.0"),
("arrow-0.9.0", "0.9.0"),
("arrow-0.9.0-rc", "0.9.0-rc"),
+ ("arrow-1", "1"),
+ ("arrow-1+", "1"),
+ ("arrow-1+foo", "1"),
+ ("arrow-1.1+foo", "1.1"),
("v1.1", "v1.1"),
("V1.1", "V1.1"),
],
@@ -18,6 +22,7 @@ import pytest
def test_tag_regex(tag, expected_version):
config = Configuration()
match = config.tag_regex.match(tag)
+ assert match
version = match.group("version")
assert version == expected_version