You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lists:
zone:
wildcard: true
intents:
HassGetState:
data:
- sentences:
- "is anyone [<in>] [the] {zone:state}"
response: any
slots:
domain: person
tests:
- sentences:
- "is anyone at Work"
intent:
name: HassGetState
slots:
domain: person
state: Work
response: "Yes, Ada"
produces
E AssertionError: Expected work, got Work for slot state for: is anyone at Work
E assert 'Work' == 'work'
E - work
E ? ^
E + Work
E ? ^
tests/test_language_sentences.py:143: AssertionError
The text was updated successfully, but these errors were encountered:
although having a quick look at the code it doesn't seem straight forward, as casefold can change the length of the text and therefore the index of the wildcard match in the original text.
Fixtures:
Sentences and tests:
produces
The text was updated successfully, but these errors were encountered: