Skip to content

Commit

Permalink
chore(test_main.py): Fixed unittest. fix #428 @0.5h
Browse files Browse the repository at this point in the history
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
  • Loading branch information
みぞ@CrazyBeatCoder committed Sep 15, 2018
1 parent 83e4a61 commit 01e3ed5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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':
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 01e3ed5

Please sign in to comment.