Skip to content

Commit

Permalink
Add handling when a skill has no dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Apr 2, 2024
1 parent 312039e commit 1ec27e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions neon_minerva/tests/test_skill_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ def test_intent_registration(self):

def test_dialog_files(self):
for lang in self.supported_languages:
if not self.dialog:
self.assertIsNone(self.skill._lang_resources[lang].dialog_renderer)
return
dialogs = self.skill._lang_resources[lang].dialog_renderer.templates
for dialog in self.dialog:
self.assertIn(dialog, dialogs.keys(),
Expand Down

0 comments on commit 1ec27e3

Please sign in to comment.