Skip to content

Commit 6c5cda0

Browse files
committed
!squash parse
1 parent e12a484 commit 6c5cda0

File tree

1 file changed

+25
-7
lines changed

1 file changed

+25
-7
lines changed

tests/url/test_parse.py

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from libvcs.url import parse
66
from libvcs.url.git import GitURL
77
from libvcs.url.hg import HgURL
8+
from libvcs.url.svn import SvnURL
89

910
if t.TYPE_CHECKING:
1011
from typing_extensions import TypeAlias
@@ -38,13 +39,30 @@ class DetectVCSFixture(t.NamedTuple):
3839
"git+ssh://git@github.com:vcs-python/libvcs",
3940
]
4041
],
41-
DetectVCSFixture(
42-
url="hg+http://hg.example.com/MyProject@da39a3ee5e6b",
43-
expected_matches_lazy=[
44-
lambda url: parse.ParserMatch(vcs="hg", match=HgURL(url))
45-
],
46-
is_explicit=True,
47-
),
42+
*[
43+
DetectVCSFixture(
44+
url=url,
45+
expected_matches_lazy=[
46+
lambda url: parse.ParserMatch(vcs="hg", match=HgURL(url))
47+
],
48+
is_explicit=True,
49+
)
50+
for url in [
51+
"hg+http://hg.example.com/MyProject@da39a3ee5e6b",
52+
]
53+
],
54+
*[
55+
DetectVCSFixture(
56+
url=url,
57+
expected_matches_lazy=[
58+
lambda url: parse.ParserMatch(vcs="svn", match=SvnURL(url))
59+
],
60+
is_explicit=True,
61+
)
62+
for url in [
63+
"svn+http://svn.example.com/MyProject@da39a3ee5e6b",
64+
]
65+
],
4866
]
4967

5068

0 commit comments

Comments
 (0)