* Support anonymous wildcards.
This commit is contained in:
@@ -822,6 +822,13 @@ class TestPromptPostProcessor(unittest.TestCase):
|
||||
ppp=self.__nocupppp,
|
||||
)
|
||||
|
||||
def test_wc_anonymouswildcard_yaml(self): # yaml anonymous wildcard
|
||||
self.__process(
|
||||
PromptPair("the choices are: __yaml/nesteddict__", ""),
|
||||
PromptPair("the choices are: six", ""),
|
||||
ppp=self.__nocupppp,
|
||||
)
|
||||
|
||||
# ComfyUI tests
|
||||
|
||||
def test_comfyui_attention(self): # attention conversion
|
||||
|
||||
@@ -52,3 +52,14 @@ yaml:
|
||||
even_more_nested: # this would be __yaml/more_nested/even_more_nested__
|
||||
- one
|
||||
- two
|
||||
|
||||
nesteddict:
|
||||
- one
|
||||
- two
|
||||
- # anonymous wildcard without options
|
||||
- three
|
||||
- four
|
||||
- 3 if _is_sdxl: # anonymous wildcard with options
|
||||
- five
|
||||
- six
|
||||
- { weight: 1, text: [seven, eight] } # anonymous wildcard used in a choice in object format
|
||||
|
||||
Reference in New Issue
Block a user