add regression test

This commit is contained in:
Lincoln Stein 2023-09-21 12:43:34 -04:00
parent 6d2b4013f8
commit 28a1a6939f

View File

@ -121,6 +121,12 @@ def test_env_override(patch_rootdir):
conf.parse_args(conf=init1, argv=[])
assert conf.max_cache_size == 20
# make sure that prefix is respected
del os.environ["INVOKEAI_always_use_cpu"]
os.environ["always_use_cpu"] = "True"
conf.parse_args(conf=init1, argv=[])
assert conf.always_use_cpu is False
def test_root_resists_cwd(patch_rootdir):
from invokeai.app.services.config import InvokeAIAppConfig