diff --git a/requirements/test.txt b/requirements/test.txt index 42c48e0..55bb597 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -1 +1 @@ -neon-minerva[padatious]~=0.1 \ No newline at end of file +neon-minerva[padatious]~=0.1,>=0.1.1a5 diff --git a/test/test_skill.py b/test/test_skill.py index 843c3c4..a95d5b4 100644 --- a/test/test_skill.py +++ b/test/test_skill.py @@ -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