Skip to content

Commit bb7c07a

Browse files
committed
Fix lint issues in NuGet ignored patterns test
Signed-off-by: Monal-Reddy <monalreddy001@gmail.com>
1 parent 23f828d commit bb7c07a

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

scanpipe/tests/pipes/test_flag.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
# ScanCode.io is a free software code scanning tool from nexB Inc. and others.
2121
# Visit https://github.com/nexB/scancode.io for support and download.
2222

23-
from django.test import TestCase
2423
from fnmatch import fnmatch
24+
from django.test import TestCase
2525

2626
from scanpipe import pipes
2727
from scanpipe.models import CodebaseResource
@@ -139,19 +139,19 @@ def test_scanpipe_pipes_flag_flag_mapped_resources(self):
139139
self.assertEqual("mapped", self.resource1.status)
140140
self.assertEqual("mapped", self.resource2.status)
141141

142-
def test_nuget_ignored_patterns_match_expected_files():
143-
paths = [
144-
"package/_rels/.rels",
145-
"package/[Content_Types].xml",
146-
"package/services/metadata/core-properties",
147-
"foo.runtimeconfig.json",
148-
"bar.dll.config",
149-
"baz.exe.config",
150-
"test.shasum",
151-
]
152-
153-
for path in paths:
154-
assert any(
155-
fnmatch(path, pattern)
156-
for pattern in flag.NUGET_IGNORED_PATTERNS
157-
), path
142+
def test_nuget_ignored_patterns_match_expected_files(self):
143+
paths = [
144+
"package/_rels/.rels",
145+
"package/[Content_Types].xml",
146+
"package/services/metadata/core-properties",
147+
"foo.runtimeconfig.json",
148+
"bar.dll.config",
149+
"baz.exe.config",
150+
"test.shasum",
151+
]
152+
for path in paths:
153+
matched = any(
154+
fnmatch(path, pattern)
155+
for pattern in flag.NUGET_IGNORED_PATTERNS
156+
)
157+
self.assertTrue(matched, path)

0 commit comments

Comments
 (0)