Skip to content

Commit c42aae3

Browse files
committed
Add test case for docstring
1 parent 8ac1146 commit c42aae3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,19 @@
1313
from semver import max_ver
1414

1515

16+
SEMVERFUNCS = [
17+
compare, match, parse, format_version,
18+
bump_major, bump_minor, bump_patch, bump_prerelease, bump_build,
19+
max_ver, min_ver,
20+
]
21+
22+
23+
@pytest.mark.parametrize("func", SEMVERFUNCS,
24+
ids=[func.__name__ for func in SEMVERFUNCS])
25+
def test_fordocstrings(func):
26+
assert func.__doc__, "Need a docstring for function %r" % func.__name
27+
28+
1629
def test_should_parse_version():
1730
result = parse("1.2.3-alpha.1.2+build.11.e0f985a")
1831
assert result == {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy