Skip to content

Commit 5854716

Browse files
committed
Explain weird looking expected license test result
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent 1afbeab commit 5854716

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/licensedcode/test_match.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1702,6 +1702,9 @@ def test_matched_text_is_collected_correctly_end2end(self):
17021702
idx = LicenseIndex(rules)
17031703

17041704
results = [match.matched_text(_usecache=False) for match in idx.match(location=query_location)]
1705+
1706+
# Expected may be surprising, but we are not testing matching quality, only matched text
1707+
# and we are using a small limited index with only three rules
17051708
expected = [
17061709
'This source code is licensed under both the Apache 2.0 license '
17071710
'(found in the\n# LICENSE',

0 commit comments

Comments
 (0)