We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 669cd46 commit 9d18c1cCopy full SHA for 9d18c1c
1 file changed
tests/test_format.py
@@ -459,6 +459,20 @@ def test_r_scope__scopes(conventional_commit_scope_required):
459
assert not regex.match("(api; client)")
460
461
462
+def test_r_scope__scopes_uppercase(conventional_commit_scope_required):
463
+ conventional_commit_scope_required.scopes = ["api", "client"]
464
+ regex = re.compile(conventional_commit_scope_required.r_scope)
465
+
466
+ assert regex.match("(API)")
467
+ assert regex.match("(CLIENT)")
468
+ assert regex.match("(API, CLIENT)")
469
+ assert regex.match("(API: CLIENT)")
470
+ assert regex.match("(API/CLIENT)")
471
+ assert regex.match("(API-CLIENT)")
472
+ assert not regex.match("(TEST)")
473
+ assert not regex.match("(API; CLIENT)")
474
475
476
def test_r_delim(conventional_commit):
477
regex = re.compile(conventional_commit.r_delim)
478
0 commit comments