fix(tests): add --use_memory_db flag; use it in tests

This commit is contained in:
psychedelicious
2023-05-25 11:53:02 +10:00
parent ad619ae880
commit 3829ffbe66
3 changed files with 8 additions and 2 deletions

View File

@ -214,7 +214,10 @@ def invoke_cli():
output_folder = config.output_path
# TODO: build a file/path manager?
db_location = os.path.join(output_folder, "invokeai.db")
if config.use_memory_db:
db_location = ":memory:"
else:
db_location = os.path.join(output_folder, "invokeai.db")
logger.info(f'InvokeAI database location is "{db_location}"')