14
14
15
15
"""Integration tests for license validator."""
16
16
17
-
18
17
from licensevalidator .licensevalidator import validate_used_licenses
19
18
20
19
@@ -31,16 +30,17 @@ def test_python_with_workflows():
31
30
"whitelist.txt" ,
32
31
)
33
32
34
- assert result is True
33
+ assert result is False
35
34
assert len (origin_vs_deps ) == 2
36
35
37
36
assert "Python" in origin_vs_deps
38
37
python_deps = origin_vs_deps ["Python" ]
39
- assert len (python_deps ) == 4
38
+ assert len (python_deps ) == 5
40
39
assert python_deps [0 ].name == "idna"
41
40
assert python_deps [1 ].name == "multidict"
42
41
assert python_deps [2 ].name == "six"
43
- assert python_deps [3 ].name == "yarl"
42
+ assert python_deps [3 ].name == "typing-extensions"
43
+ assert python_deps [4 ].name == "yarl"
44
44
45
45
assert "Workflows" in origin_vs_deps
46
46
workflow_deps = origin_vs_deps ["Workflows" ]
@@ -60,15 +60,16 @@ def test_python_without_workflows():
60
60
"whitelist.txt" ,
61
61
)
62
62
63
- assert result is True
63
+ assert result is False
64
64
assert len (origin_vs_deps ) == 1
65
65
assert "Python" in origin_vs_deps
66
66
python_deps = origin_vs_deps ["Python" ]
67
- assert len (python_deps ) == 4
67
+ assert len (python_deps ) == 5
68
68
assert python_deps [0 ].name == "idna"
69
69
assert python_deps [1 ].name == "multidict"
70
70
assert python_deps [2 ].name == "six"
71
- assert python_deps [3 ].name == "yarl"
71
+ assert python_deps [3 ].name == "typing-extensions"
72
+ assert python_deps [4 ].name == "yarl"
72
73
73
74
74
75
def test_python_without_req_files ():
0 commit comments