File tree Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
# SPDX-License-Identifier: BSD-3-Clause
3
3
4
4
import logging
5
+ import os
5
6
import unittest
6
7
7
8
from codebasin import config , finder
@@ -18,11 +19,15 @@ def setUp(self):
18
19
logging .getLogger ("codebasin" ).disabled = True
19
20
20
21
def _get_setmap (self , excludes ):
21
- codebase , configuration = config .load (
22
- "./tests/exclude/exclude.yaml" ,
23
- self .rootdir ,
24
- exclude_patterns = excludes ,
25
- )
22
+ codebase = {
23
+ "files" : [],
24
+ "platforms" : ["test" ],
25
+ "exclude_files" : set (),
26
+ "exclude_patterns" : excludes ,
27
+ "rootdir" : os .path .realpath (self .rootdir ),
28
+ }
29
+ dbpath = os .path .realpath (os .path .join (self .rootdir , "commands.json" ))
30
+ configuration = {"test" : config .load_database (dbpath , self .rootdir )}
26
31
state = finder .find (self .rootdir , codebase , configuration )
27
32
mapper = PlatformMapper (codebase )
28
33
setmap = mapper .walk (state )
You can’t perform that action at this time.
0 commit comments