Skip to content

Commit

Permalink
update: update test.
Browse files Browse the repository at this point in the history
Signed-off-by: Jay <[email protected]>
  • Loading branch information
35C4n0r committed Sep 9, 2023
1 parent 33df506 commit 825ce00
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
16 changes: 8 additions & 8 deletions src/licensedcode/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@
"""

# Tracing flags
TRACE = False or os.environ.get('SCANCODE_DEBUG_LICENSE', False)
TRACE_APPROX = False
TRACE_APPROX_CANDIDATES = False
TRACE_APPROX_MATCHES = False
TRACE_INDEXING = False or os.environ.get('SCANCODE_DEBUG_LICENSE_INDEX', False)
TRACE_INDEXING_PERF = False
TRACE_TOKEN_DOC_FREQ = False
TRACE_SPDX_LID = False
TRACE = True or os.environ.get('SCANCODE_DEBUG_LICENSE', False)
TRACE_APPROX = True
TRACE_APPROX_CANDIDATES = True
TRACE_APPROX_MATCHES = True
TRACE_INDEXING = True or os.environ.get('SCANCODE_DEBUG_LICENSE_INDEX', False)
TRACE_INDEXING_PERF = True
TRACE_TOKEN_DOC_FREQ = True
TRACE_SPDX_LID = True


def logger_debug(*args):
Expand Down
11 changes: 3 additions & 8 deletions tests/fails/test1.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ def test_stable_firmwar_realtek_copyright_detailed_expected_yml(self):
)

query_loc = self.get_test_loc('debian/stable_firmware-realtek.copyright')
qry = build_query(location=query_loc, idx=idx)

match = match_unknowns(
idx=idx,
query_run=qry.whole_query_run(),
automaton=idx.unknown_automaton,
)
match.set_lines(qry.line_by_pos)
qry_string = open(query_loc, 'r').read()
m = idx.match(query_string=qry_string)
print(m)

0 comments on commit 825ce00

Please sign in to comment.