From 01e3ed54a97c5817f73befe8f252db6b5f9e158f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=BF=E3=81=9E=40CrazyBeatCoder?= Date: Sat, 15 Sep 2018 15:18:46 +0900 Subject: [PATCH] chore(test_main.py): Fixed unittest. fix #428 @0.5h https://circleci.com/gh/mizo0203/google-home-shiritori/176 test_post_ask_continue_intent (test_main.TestWebApp) ... ERROR:root:u'parameters' test_post_ask_word_intent_1 (test_main.TestWebApp) ... FAIL test_post_google_assistant_welcome_intent (test_main.TestWebApp) ... FAIL --- tests/test_main.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/test_main.py b/tests/test_main.py index 1fd5133..65a1658 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -74,7 +74,7 @@ def test_post_google_assistant_welcome_intent(self): obj = json.loads(response.body) assert response.status_int == 200 - assert obj[u'followupEventInput'][u'name'] == u'ASK_CONTINUE_EVENT' + assert obj[u'followupEventInput'][u'name'] == u'ASK_WORD_EVENT' assert obj[u'followupEventInput'][u'languageCode'] == u'ja' def test_post_ask_continue_intent(self): @@ -89,6 +89,9 @@ def test_post_ask_continue_intent(self): u'displayName': u'Ask Continue Intent', }, u'queryText': u'test code', + u'parameters': { + u'startMode': u'NEW_GAME' + }, u'languageCode': u'ja', }, u'originalDetectIntentRequest': @@ -138,7 +141,7 @@ def test_post_ask_word_intent_1(self): obj = json.loads(response.body) assert response.status_int == 200 - assert obj[u'fulfillmentText'] == u'しりとり、の、リ' + assert obj[u'fulfillmentText'] == u'シリトリ、の、リ' def test_post_ask_word_intent_2(self): app = webtest.TestApp(main.app)