Skip to content

Commit 3753707

Browse files
committed
!squash
1 parent e0a1155 commit 3753707

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed
File renamed without changes.

tests/url/test_parse.py

+28
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)