File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change
1
+ """Tests for version comparison."""
1
2
import operator
2
3
import typing as t
3
4
from contextlib import nullcontext as does_not_raise
30
31
],
31
32
)
32
33
def test_version (version : str ) -> None :
34
+ """Assert LooseVersion constructor against various version strings."""
33
35
assert LooseVersion (version )
34
36
35
37
36
38
class VersionCompareFixture (t .NamedTuple ):
39
+ """Test fixture for version comparison."""
40
+
37
41
a : object
38
42
op : "VersionCompareOp"
39
43
b : object
@@ -61,6 +65,7 @@ def test_version_compare(
61
65
b : str ,
62
66
raises : t .Union [t .Type [Exception ], bool ],
63
67
) -> None :
68
+ """Assert version comparisons."""
64
69
raises_ctx : "RaisesContext[Exception]" = (
65
70
pytest .raises (t .cast (t .Type [Exception ], raises ))
66
71
if raises
You can’t perform that action at this time.
0 commit comments