mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
add regression test
This commit is contained in:
parent
6d2b4013f8
commit
28a1a6939f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user