Skip to content

Commit 37e942b

Browse files
committed
add test
Signed-off-by: Alok Kumar <[email protected]>
1 parent 3aec560 commit 37e942b

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed
Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,17 @@
1-
S5PC100_GPL3(0)
1+
.chip = {
2+
.base = S5PC100_GPL1(0),
3+
.ngpio = S5PC100_GPIO_L1_NR,
4+
.label = "GPL1",
5+
},
6+
}, {
7+
.chip = {
8+
.base = S5PC100_GPL2(0),
9+
.ngpio = S5PC100_GPIO_L2_NR,
10+
.label = "GPL2",
11+
},
12+
}, {
13+
.chip = {
14+
.base = S5PC100_GPL3(0),
15+
.ngpio = S5PC100_GPIO_L3_NR,
16+
.label = "GPL3",
17+
},

tests/licensedcode/test_detect.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,14 +1313,8 @@ def test_detection_return_correct_mit_not_apache_using_full_index(self):
13131313
assert results == expected
13141314

13151315
def test_detection_returns_correct_no_gpl3_false_positive(self):
1316-
13171316
idx = cache.get_index()
1318-
expected = []
1319-
13201317
query_location = self.get_test_loc('false_positive/false-positive-gpl3.txt')
13211318
matches = idx.match(location=query_location)
1322-
1323-
results = [m.rule.license_expression for m in matches]
1324-
1325-
assert results == expected
1319+
assert not matches
13261320

0 commit comments

Comments
 (0)