Skip to content

Commit 8fbede6

Browse files
committed
Add non-cli test for #1362
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent b0db6f7 commit 8fbede6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/scancode/test_plugin_ignore.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,12 @@ def test_ProcessIgnore_with_multiple_ignores(self):
128128
]
129129
self.check_ProcessIgnore(test_dir, expected, ignore)
130130

131+
def test_ProcessIgnore_process_codebase_does_not_fail_to_access_an_ignored_resourced_cached_to_disk(self):
132+
test_dir = self.extract_test_tar('plugin_ignore/user.tgz')
133+
codebase = Codebase(test_dir, max_in_memory=1)
134+
test_plugin = ProcessIgnore()
135+
ignore = ['test']
136+
test_plugin.process_codebase(codebase, ignore=ignore)
131137

132138

133139
class TestScanPluginIgnoreFiles(FileDrivenTesting):

0 commit comments

Comments
 (0)