Poprawka testu

This commit is contained in:
Patryk Osiński 2024-06-10 00:48:05 +02:00
parent 3d820e8d6d
commit 79bf27aca4

View File

@ -5,6 +5,7 @@ from src.model.slot import Slot
dsm = DialogStateMonitor()
assert dsm.pizza_exists('capri') is True
assert dsm.pizza_exists('buraczana') is False
assert dsm.state['was_previous_order_invalid'] is False
frame1 = Frame('user', 'inform/order', [Slot('pizza', 'margarita'), Slot('sauce', 'ketchup')])
@ -42,7 +43,7 @@ assert len(dsm.state['history']) == 0
dsm.reset()
frame1 = Frame('user', 'inform/order', [Slot('pizza', 'buraczna')])
frame1 = Frame('user', 'inform/order', [Slot('pizza', 'buraczana')])
dsm.update(frame1)
assert dsm.state['was_previous_order_invalid'] is True
assert dsm.state['belief_state']['order'] == []