File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55from libvcs .url import parse
66from libvcs .url .git import GitURL
77from libvcs .url .hg import HgURL
8+ from libvcs .url .svn import SvnURL
89
910if 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
You can’t perform that action at this time.
0 commit comments