8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0a1155 commit 3753707Copy full SHA for 3753707
src/libvcs/url/detect.py renamed to src/libvcs/url/parse.py
tests/url/test_parse.py
@@ -0,0 +1,28 @@
1
+import typing as t
2
+
3
+import pytest
4
5
+from libvcs.url import parse
6
+from libvcs.url.git import GitBaseURL
7
8
9
+class DetectVCSFixture(t.NamedTuple):
10
+ url: str
11
+ return_class: t.Any
12
13
14
+TEST_FIXTURES: list[DetectVCSFixture] = [
15
+ DetectVCSFixture(
16
+ url="https://github.com/vcs-python/libvcs.git",
17
+ return_class=GitBaseURL,
18
+ ),
19
+]
20
21
22
+@pytest.mark.parametrize(
23
+ list(DetectVCSFixture._fields),
24
+ TEST_FIXTURES,
25
+)
26
+def test_registry(url: str, return_class: t.Any) -> None:
27
+ assert url
28
+ assert parse.detect_vcs
0 commit comments