mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Apply black, isort, flake8
This commit is contained in:
committed by
Kent Keirsey
parent
0450c28f14
commit
e467ca7f1b
@ -73,6 +73,8 @@ def test_use_init(patch_rootdir):
|
||||
|
||||
|
||||
def test_legacy():
|
||||
from invokeai.app.services.config import InvokeAIAppConfig
|
||||
|
||||
conf = InvokeAIAppConfig.get_config()
|
||||
assert conf
|
||||
conf.parse_args(conf=init3, argv=[])
|
||||
@ -84,6 +86,8 @@ def test_legacy():
|
||||
|
||||
|
||||
def test_argv_override():
|
||||
from invokeai.app.services.config import InvokeAIAppConfig
|
||||
|
||||
conf = InvokeAIAppConfig.get_config()
|
||||
conf.parse_args(conf=init1, argv=["--always_use_cpu", "--max_cache=10"])
|
||||
assert conf.always_use_cpu
|
||||
@ -165,6 +169,7 @@ def test_type_coercion(patch_rootdir):
|
||||
)
|
||||
def test_deny_nodes(patch_rootdir):
|
||||
from invokeai.app.services.config import InvokeAIAppConfig
|
||||
|
||||
# Allow integer, string and float, but explicitly deny float
|
||||
allow_deny_nodes_conf = OmegaConf.create(
|
||||
"""
|
||||
|
Reference in New Issue
Block a user