Skip to content

Commit 0b3e959

Browse files
committed
test more
1 parent eb1530f commit 0b3e959

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/test_finder.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,21 @@
66

77

88
@pytest.mark.parametrize('given, expected', [
9+
# test different resources for one project
910
(
1011
'dephell',
1112
'https://raw.githubusercontent.com/dephell/dephell/master/docs/changelog.md',
1213
),
14+
(
15+
'https://dephell.readthedocs.io/',
16+
'https://raw.githubusercontent.com/dephell/dephell/master/docs/changelog.md',
17+
),
18+
(
19+
'https://github.com/dephell/dephell/',
20+
'https://raw.githubusercontent.com/dephell/dephell/master/docs/changelog.md',
21+
),
22+
23+
# test different projects
1324
(
1425
'pip',
1526
'https://raw.githubusercontent.com/pypa/pip/master/NEWS.rst',
@@ -38,6 +49,10 @@
3849
'websocket-client',
3950
'https://raw.githubusercontent.com/websocket-client/websocket-client/master/ChangeLog',
4051
),
52+
(
53+
'attrs',
54+
'https://raw.githubusercontent.com/python-attrs/attrs/master/CHANGELOG.rst',
55+
),
4156
])
4257
def test_get_changelog_url(given: str, expected: str):
4358
assert get_changelog_url(given) == expected

0 commit comments

Comments
 (0)