Skip to content

Commit

Permalink
Update test dependencies and test case to resolve failures (#106)
Browse files Browse the repository at this point in the history
* Update test dependencies and test case to resolve failures

* Test shared test action changes

* Update minerva test dependency to latest version

* Update test workflows to default branch

---------

Co-authored-by: Daniel McKnight <daniel@neon.ai>
  • Loading branch information
NeonDaniel and NeonDaniel authored Jan 15, 2024
1 parent 59d2912 commit 639f1e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements/test.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
neon-minerva[padatious]~=0.1
neon-minerva[padatious]~=0.1,>=0.1.1a5
6 changes: 4 additions & 2 deletions test/test_skill.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,15 +528,17 @@ def test_handle_change_dialog_option(self):
def test_handle_say_my_name(self):
test_profile = self.user_config
test_message = Message("test", {},
{"username": "test_user",
{"username": "local",
"user_profiles": [test_profile]})

# No name set
# No name set for local user
self.skill.handle_say_my_name(test_message)
self.skill.speak_dialog.assert_called_with("name_not_known",
{"name_position": "name"},
private=True)

# Profile for requesting user set
test_message.context["username"] = "test_user"
test_message.context["user_profiles"][0]["user"]["username"] = \
"test_user"
# first name not known
Expand Down

0 comments on commit 639f1e7

Please sign in to comment.