Skip to content

Commit

Permalink
fixed test case
Browse files Browse the repository at this point in the history
  • Loading branch information
maheshsattala committed Feb 12, 2025
1 parent 9399e7d commit c6e109f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit_test/data_processor/data_processor_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -10813,11 +10813,11 @@ def test_edit_slot_set_action_slot_not_exists(self):
with pytest.raises(AppException, match=f'Slot with name "slot_non_existant" not found'):
processor.edit_slot_set_action(action, bot, user)

def test_edit_slot_set_action_name_empty(self):
def test_edit_slot_set_action_name_not_exists(self):
processor = MongoProcessor()
bot = 'test'
user = 'test'
action = {'name': '_', 'set_slots': [{'name': 'name', 'type': SLOT_SET_TYPE.FROM_VALUE.value,
action = {'name': 'not_exists', 'set_slots': [{'name': 'name', 'type': SLOT_SET_TYPE.FROM_VALUE.value,
'value': 'name'}]}
with pytest.raises(AppException, match=f'Slot setting action with name "{action["name"]}" not found'):
processor.edit_slot_set_action(action, bot, user)
Expand Down

0 comments on commit c6e109f

Please sign in to comment.