MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / load_from

Method load_from

src/licensedcode_test_utils.py:146–154  ·  view source on GitHub ↗

Return an iterable of LicenseTest objects loaded from `test_dir`

(test_dir)

Source from the content-addressed store, hash-verified

144
145 @staticmethod
146 def load_from(test_dir):
147 """
148 Return an iterable of LicenseTest objects loaded from `test_dir`
149 """
150 return [
151 LicenseTest(data_file, test_file)
152 for data_file, test_file
153 in get_test_file_pairs(test_dir)
154 ]
155
156
157def build_tests(test_dir, clazz, unknown_detection=False, regen=REGEN_TEST_FIXTURES):

Callers 1

build_testsFunction · 0.80

Calls 2

get_test_file_pairsFunction · 0.90
LicenseTestClass · 0.85

Tested by

no test coverage detected