Tests
This commit is contained in:
parent
24f75db1d8
commit
118099bb37
@ -70,12 +70,16 @@ class DialogStateMonitor:
|
||||
|
||||
if stage['name'] == "collect_food":
|
||||
for order in self.state['belief_state']['order']:
|
||||
if len(order) > 0:
|
||||
for o in order:
|
||||
k, v = o
|
||||
if k == 'pizza':
|
||||
stage['completed'] = True
|
||||
return
|
||||
elif stage["name"] == "collect_drinks":
|
||||
for order in self.state['belief_state']['order']:
|
||||
if order.get("drink"):
|
||||
for o in order:
|
||||
k, v = o
|
||||
if k == 'drink':
|
||||
stage['completed'] = True
|
||||
return
|
||||
elif stage["name"] == "collect_address":
|
||||
|
Loading…
Reference in New Issue
Block a user