28
28
def test_get_sys_info ():
29
29
"""Expect correct platform information."""
30
30
blob = depi .get_sys_info ()
31
+ assert "OS" in blob
32
+ assert "OS-release" in blob
33
+ assert "Python" in blob
31
34
assert blob ["OS" ] == platform .system ()
32
35
assert blob ["OS-release" ] == platform .release ()
33
36
assert blob ["Python" ] == platform .python_version ()
@@ -36,6 +39,7 @@ def test_get_sys_info():
36
39
def test_get_pkg_info ():
37
40
"""Expect minimal package dependencies."""
38
41
blob = depi .get_pkg_info ("depinfo" )
42
+ assert "depinfo" in blob
39
43
assert "pip" in blob
40
44
assert "setuptools" in blob
41
45
assert "wheel" in blob
@@ -66,10 +70,11 @@ def test_print_dependencies(capsys):
66
70
67
71
assert lines [7 ].startswith ("Package Versions" )
68
72
assert lines [8 ].startswith ("================" )
69
- assert lines [9 ].startswith ("pip" )
70
- assert lines [10 ].startswith ("pipdeptree" )
71
- assert lines [11 ].startswith ("setuptools" )
72
- assert lines [12 ].startswith ("wheel" )
73
+ assert lines [9 ].startswith ("depinfo" )
74
+ assert lines [10 ].startswith ("pip" )
75
+ assert lines [11 ].startswith ("pipdeptree" )
76
+ assert lines [12 ].startswith ("setuptools" )
77
+ assert lines [13 ].startswith ("wheel" )
73
78
74
79
75
80
def test_show_versions (capsys ):
@@ -85,7 +90,8 @@ def test_show_versions(capsys):
85
90
86
91
assert lines [7 ].startswith ("Package Versions" )
87
92
assert lines [8 ].startswith ("================" )
88
- assert lines [9 ].startswith ("pip" )
89
- assert lines [10 ].startswith ("pipdeptree" )
90
- assert lines [11 ].startswith ("setuptools" )
91
- assert lines [12 ].startswith ("wheel" )
93
+ assert lines [9 ].startswith ("depinfo" )
94
+ assert lines [10 ].startswith ("pip" )
95
+ assert lines [11 ].startswith ("pipdeptree" )
96
+ assert lines [12 ].startswith ("setuptools" )
97
+ assert lines [13 ].startswith ("wheel" )
0 commit comments