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
When I run pytest for below test case configuration: sentences:
language: pl
intents:
HassTimerStatus:
data:
- sentences:
- "<area>[ jaki| jaki jest] <timer_state>[ mojego| moich][ <timer_start>] <timer>[ {timer_name:name}]"
- "[jaki |jaki jest ]<area> <timer_state>[ mojego| moich][ <timer_start>] <timer>[ {timer_name:name}]"
- "[jaki |jaki jest ]<timer_state> <area>[ mojego| moich][ <timer_start>] <timer>[ {timer_name:name}]"
- "[jaki |jaki jest ]<timer_state>[ mojego| moich][ <timer_start>] <timer>[ {timer_name:name}] <area>"
- "[jaki |jaki jest ]<timer_state>[ mojego| moich][ <timer_start>] (<timer_plural>|<timer>)[ {timer_name:name}]"
- "ile czasu [po]zostało na [moich |moim ][<timer_start> ](<timer_plural>|<timer>)[ {timer_name:name}] <area>"
- "ile czasu [po]zostało na [moich |moim ][<timer_start> ](<timer_plural>|<timer>)[ {timer_name:name}]"
test:
- sentences:
- "stan minutnika w kuchni"
- "status minutnika w kuchni"
- "podsumowanie minutnika w kuchni"
- "jaki stan minutnika w kuchni"
- "jaki jest stan minutnika w kuchni"
- "jaki jest w kuchni stan mojego minutnika"
- "w kuchni jaki jest stan minutnika"
- "stan mojego minutnika w kuchni"
- "ile czasu pozostało na minutniku w kuchni"
intent:
name: HassTimerStatus
slots:
area: "Kuchni"
response: |
Pozostały 3 minuty do zakończenia.
I see that all te time pytest can not discover timer on this area. When I print {{ slots }} in my response I see: {'area': 'kuchni', 'timers': [], 'date': datetime.date(2013, 9, 17), 'time': datetime.time(1, 2)}
Also when I check main params in top of run the test:
The similar issue exist when we have response from HassTimerStatus.yaml. We can use one params {{ next_timer.area }} to return area name. But when we use some variations of name for our area like: name: "Kuchni[a]" the this variable return configuration string, not correct area name. In my case:
language: pl
tests:
- sentences:
- "stan minutnika"
- "status minutnika"
- "podsumowanie minutnika"
- "jaki stan minutnika"
- "jaki jest stan minutnika"
- "stan moich minutników"
- "jaki jest stan moich minutników"
- "ile czasu pozostało na moich minutnikach"
intent:
name: HassTimerStatus
response: |
2 uruchomione minutniki. 1 wstrzymany minutnik. Pozostały 3 minuty na 5 minutowym minutniku w kuchni[a].
I see the answer: 2 uruchomione minutniki. 1 wstrzymany minutnik. Pozostały 3 minuty na 5 minutowym minutniku w kuchni[a].
but it should be: 2 uruchomione minutniki. 1 wstrzymany minutnik. Pozostały 3 minuty na 5 minutowym minutniku w kuchni.
I have very simple
_fixtures.yaml
configuration:When I run pytest for below test case configuration:
sentences
:test
:I see that all te time pytest can not discover timer on this area. When I print
{{ slots }}
in my response I see:{'area': 'kuchni', 'timers': [], 'date': datetime.date(2013, 9, 17), 'time': datetime.time(1, 2)}
Also when I check main params in top of run the test:
I observed that my timer use area call
area='kuchni[a]'
. This is incorrect because I can not use this name in my test templates.The text was updated successfully, but these errors were encountered: