プロジェクト

全般

プロフィール

機能 #419

一定回数以上続いたら AI は「ん」で終わる単語を言って降参する

みぞ @mizo0203 さんが5年以上前に追加. 5年以上前に更新.

ステータス:
完了
優先度:
通常
対象バージョン:
開始日:
2018/08/16
期日:
2018/08/16
進捗率:

100%

予定工数:
作業時間:
#1

古明地こいし @redmizo_info さんが5年以上前に更新

Commit: ee3152fd765d103cd525b154d8fcf20c0873f956
https://github.com/mizo0203/google-home-shiritori/commit/ee3152fd765d103cd525b154d8fcf20c0873f956
Author: みぞ@CrazyBeatCoder mizo0203@mizo0203.com
Date: 2018-08-16 (Thu, 16 Aug 2018)

Log Message:


style(*.py): refactoring 'main.py'. ref #419 @1.0h

#2

みぞ @mizo0203 さんが5年以上前に更新

  • ステータス新規 から 進行中 に変更
  • 進捗率0 から 40 に変更

更新履歴 github|ee3152fd765d103cd525b154d8fcf20c0873f956 で適用されました。

#3

古明地こいし @redmizo_info さんが5年以上前に更新

Commit: 5c8070114d4d0b10a7710ae1f11dbda07f0356a8
https://github.com/mizo0203/google-home-shiritori/commit/5c8070114d4d0b10a7710ae1f11dbda07f0356a8
Author: みぞ@CrazyBeatCoder mizo0203@mizo0203.com
Date: 2018-08-16 (Thu, 16 Aug 2018)

Log Message:


feat(*.py): add limit count of words that Google Home will response. fix #419 @2.5h

#4

みぞ @mizo0203 さんが5年以上前に更新

  • ステータス進行中 から 解決 に変更
  • 進捗率40 から 80 に変更

更新履歴 github|5c8070114d4d0b10a7710ae1f11dbda07f0356a8 で適用されました。

#5

みぞ @mizo0203 さんが5年以上前に更新

  • ステータス解決 から フィードバック に変更
  • 進捗率80 から 20 に変更

UnitTest のバグあり

https://circleci.com/gh/mizo0203/google-home-shiritori/170?utm_campaign=chatroom-integration&utm_medium=referral&utm_source=slack

WARNING:root:No ssl package found. urlfetch will not be able to validate SSL certificates.
test_get (test_main.TestWebApp) ... ok
test_post_ask_continue_intent (test_main.TestWebApp) ... ok
test_post_ask_word_intent_1 (test_main.TestWebApp) ... ok
test_post_ask_word_intent_2 (test_main.TestWebApp) ... ERROR:root:unsupported operand type(s) for +: 'NoneType' and 'unicode'
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/webapp2.py", line 1535, in __call__
    rv = self.handle_exception(request, response, e)
  File "/usr/local/lib/python2.7/site-packages/webapp2.py", line 1529, in __call__
    rv = self.router.dispatch(request, response)
  File "/usr/local/lib/python2.7/site-packages/webapp2.py", line 1278, in default_dispatcher
    return route.handler_adapter(request, response)
  File "/usr/local/lib/python2.7/site-packages/webapp2.py", line 1102, in __call__
    return handler.dispatch()
  File "/usr/local/lib/python2.7/site-packages/webapp2.py", line 572, in dispatch
    return self.handle_exception(e, self.app.debug)
  File "/usr/local/lib/python2.7/site-packages/webapp2.py", line 570, in dispatch
    return method(*args, **kwargs)
  File "main.py", line 54, in post
    obj = domain.response_word(obj)
  File "domain.py", line 106, in response_word
    u'fulfillmentText': infra.get_last_word_datastore(user) + u'で始まる言葉を使ってください',
TypeError: unsupported operand type(s) for +: 'NoneType' and 'unicode'
ERROR
test_post_ask_word_intent_3 (test_main.TestWebApp) ... ok
test_post_google_assistant_welcome_intent (test_main.TestWebApp) ... ok
test_search_reading_from_dic (test_infra.TestInfra) ... ok
test_search_reading_from_dic_none_words (test_infra.TestInfra) ... ok

======================================================================
ERROR: test_post_ask_word_intent_2 (test_main.TestWebApp)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/circleci/repo/tests/test_main.py", line 163, in test_post_ask_word_intent_2
    u'userId': u'TestId'
  File "/usr/local/lib/python2.7/site-packages/webtest/utils.py", line 36, in wrapper
    return self._gen_request(method, url, **kw)
  File "/usr/local/lib/python2.7/site-packages/webtest/app.py", line 759, in _gen_request
    expect_errors=expect_errors)
  File "/usr/local/lib/python2.7/site-packages/webtest/app.py", line 655, in do_request
    self._check_status(status, res)
  File "/usr/local/lib/python2.7/site-packages/webtest/app.py", line 687, in _check_status
    res)
AppError: Bad response: 500 Internal Server Error (not 200 OK or 3xx redirect for http://localhost/)
<html>
  <head>
    <title>Internal Server Error</title>
    <style>
      body {
        padding: 20px;
        font-family: arial, sans-serif;
        font-size: 14px;
      }
      pre {
        background: #F2F2F2;
        padding: 10px;
      }
    </style>
  </head>
  <body>
    <h1>Internal Server Error</h1>
    <p>The server has either erred or is incapable of performing
    the requested operation.</p>
    <pre>Traceback (most recent call last):
  File &quot;/usr/local/lib/python2.7/site-packages/webapp2.py&quot;, line 1535, in __call__
    rv = self.handle_exception(request, response, e)
  File &quot;/usr/local/lib/python2.7/site-packages/webapp2.py&quot;, line 1529, in __call__
    rv = self.router.dispatch(request, response)
  File &quot;/usr/local/lib/python2.7/site-packages/webapp2.py&quot;, line 1278, in default_dispatcher
    return route.handler_adapter(request, response)
  File &quot;/usr/local/lib/python2.7/site-packages/webapp2.py&quot;, line 1102, in __call__
    return handler.dispatch()
  File &quot;/usr/local/lib/python2.7/site-packages/webapp2.py&quot;, line 572, in dispatch
    return self.handle_exception(e, self.app.debug)
  File &quot;/usr/local/lib/python2.7/site-packages/webapp2.py&quot;, line 570, in dispatch
    return method(*args, **kwargs)
  File &quot;main.py&quot;, line 54, in post
    obj = domain.response_word(obj)
  File &quot;domain.py&quot;, line 106, in response_word
    u'fulfillmentText': infra.get_last_word_datastore(user) + u'\u3067\u59cb\u307e\u308b\u8a00\u8449\u3092\u4f7f\u3063\u3066\u304f\u3060\u3055\u3044',
TypeError: unsupported operand type(s) for +: 'NoneType' and 'unicode'
</pre>
  </body>
</html>

----------------------------------------------------------------------
Ran 8 tests in 0.080s

FAILED (errors=1)
#6

古明地こいし @redmizo_info さんが5年以上前に更新

Commit: ee3152fd765d103cd525b154d8fcf20c0873f956
https://github.com/mizo0203/google-home-shiritori/commit/ee3152fd765d103cd525b154d8fcf20c0873f956
Author: みぞ@CrazyBeatCoder mizo0203@mizo0203.com
Date: 2018-08-16 (Thu, 16 Aug 2018)

Log Message:


style(*.py): refactoring 'main.py'. ref #419 @1.0h

#7

古明地こいし @redmizo_info さんが5年以上前に更新

Commit: 5c8070114d4d0b10a7710ae1f11dbda07f0356a8
https://github.com/mizo0203/google-home-shiritori/commit/5c8070114d4d0b10a7710ae1f11dbda07f0356a8
Author: みぞ@CrazyBeatCoder mizo0203@mizo0203.com
Date: 2018-08-16 (Thu, 16 Aug 2018)

Log Message:


feat(*.py): add limit count of words that Google Home will response. fix #419 @2.5h

#8

みぞ @mizo0203 さんが5年以上前に更新

  • ステータスフィードバック から 解決 に変更
  • 進捗率20 から 80 に変更
#9

みぞ @mizo0203 さんが5年以上前に更新

  • 対象バージョンv0.1-demo にセット
#10

a a さんが5年以上前に更新

  • ステータス解決 から 完了 に変更
  • 進捗率80 から 100 に変更

他の形式にエクスポート: Atom PDF