We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 265e7d3 commit 28f29c9Copy full SHA for 28f29c9
tests/licensedcode/test_query.py
@@ -156,7 +156,8 @@ def test_Query_tokenize_from_string(self):
156
Always'''
157
158
qry = Query(query_string=querys, idx=idx, _test_mode=True)
159
- qry.tokenize_and_build_runs(qry.tokens_by_line())
+ tokens_by_line = list(qry.tokens_by_line(query_string=querys))
160
+ qry.tokenize_and_build_runs(tokens_by_line)
161
# convert tid to actual token strings
162
tks_as_str = lambda tks: [None if tid is None else idx.tokens_by_tid[tid] for tid in tks]
163
0 commit comments