Merge pull request #488 from isslower/codex/python-test-args
Fix Python test helpers to use function arguments
This commit is contained in:
commit
e360f3d031
|
|
@ -49,7 +49,7 @@ def run_bench_test(db_path: str, src_path: str, cache_policy: str):
|
||||||
# create the searcher
|
# create the searcher
|
||||||
searcher = None
|
searcher = None
|
||||||
try:
|
try:
|
||||||
searcher = create_searcher(args.db, args.cache_policy)
|
searcher = create_searcher(db_path, cache_policy)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("failed to create searcher: {}".format(str(e)))
|
print("failed to create searcher: {}".format(str(e)))
|
||||||
return
|
return
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ def run_search_test(db_path: str, cache_policy: str):
|
||||||
# create the searcher
|
# create the searcher
|
||||||
searcher = None
|
searcher = None
|
||||||
try:
|
try:
|
||||||
searcher = create_searcher(args.db, args.cache_policy)
|
searcher = create_searcher(db_path, cache_policy)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("failed to create searcher: {}".format(str(e)))
|
print("failed to create searcher: {}".format(str(e)))
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue