Poprawka testu
This commit is contained in:
parent
3d820e8d6d
commit
79bf27aca4
@ -5,6 +5,7 @@ from src.model.slot import Slot
|
|||||||
dsm = DialogStateMonitor()
|
dsm = DialogStateMonitor()
|
||||||
|
|
||||||
assert dsm.pizza_exists('capri') is True
|
assert dsm.pizza_exists('capri') is True
|
||||||
|
assert dsm.pizza_exists('buraczana') is False
|
||||||
assert dsm.state['was_previous_order_invalid'] is False
|
assert dsm.state['was_previous_order_invalid'] is False
|
||||||
|
|
||||||
frame1 = Frame('user', 'inform/order', [Slot('pizza', 'margarita'), Slot('sauce', 'ketchup')])
|
frame1 = Frame('user', 'inform/order', [Slot('pizza', 'margarita'), Slot('sauce', 'ketchup')])
|
||||||
@ -42,7 +43,7 @@ assert len(dsm.state['history']) == 0
|
|||||||
|
|
||||||
dsm.reset()
|
dsm.reset()
|
||||||
|
|
||||||
frame1 = Frame('user', 'inform/order', [Slot('pizza', 'buraczna')])
|
frame1 = Frame('user', 'inform/order', [Slot('pizza', 'buraczana')])
|
||||||
dsm.update(frame1)
|
dsm.update(frame1)
|
||||||
assert dsm.state['was_previous_order_invalid'] is True
|
assert dsm.state['was_previous_order_invalid'] is True
|
||||||
assert dsm.state['belief_state']['order'] == []
|
assert dsm.state['belief_state']['order'] == []
|
||||||
|
Loading…
Reference in New Issue
Block a user