Skip to content

Commit e6d1daa

Browse files
committed
tests(parser): Also assert the matchers
1 parent 3805a54 commit e6d1daa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libvcs/parse/git.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,9 +560,15 @@ def is_valid(cls, url: str, is_explicit: Optional[bool] = None) -> bool:
560560
... )
561561
True
562562
563+
>>> GitURL(url='git@github.com:vcs-python/libvcs.git').matcher
564+
'gh-matcher'
565+
563566
This is just us cleaning up:
564567
565568
>>> GitURL.matchers.unregister('gh-matcher')
569+
570+
>>> GitURL(url='git@github.com:vcs-python/libvcs.git').matcher
571+
'core-git-scp'
566572
"""
567573
return super().is_valid(url=url, is_explicit=is_explicit)
568574

0 commit comments

Comments
 (0)