Skip to content

Commit e71f8af

Browse files
committed
Remove unused test code, inline imports
Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent 7d46ce9 commit e71f8af

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

tests/cluecode/cluecode_test_utils.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
from commoncode.testcase import get_test_file_pairs
2020
from commoncode.text import python_safe_name
2121

22-
from cluecode.copyrights import detect_copyrights
23-
from cluecode.copyrights import Detection
2422
from scancode_config import REGEN_TEST_FIXTURES
2523

2624

@@ -172,11 +170,6 @@ def by_count_value(value_count):
172170
return summarized
173171

174172

175-
def get_detections(test_file):
176-
detections = detect_copyrights(test_file)
177-
return Detection.split_values(detections)
178-
179-
180173
def make_copyright_test_functions(
181174
test,
182175
index,
@@ -188,6 +181,9 @@ def make_copyright_test_functions(
188181
name. Create only a single function for multiple tests (e.g. copyrights and
189182
holders together).
190183
"""
184+
from cluecode.copyrights import detect_copyrights
185+
from cluecode.copyrights import Detection
186+
191187
from summarycode.copyright_tallies import tally_copyrights
192188
from summarycode.copyright_tallies import tally_persons
193189

0 commit comments

Comments
 (0)