機能 #419
一定回数以上続いたら AI は「ん」で終わる単語を言って降参する
古明地こいし @redmizo_info さんが6年以上前に更新
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
みぞ @mizo0203 さんが6年以上前に更新
- ステータス を 新規 から 進行中 に変更
- 進捗率 を 0 から 40 に変更
更新履歴 github|ee3152fd765d103cd525b154d8fcf20c0873f956 で適用されました。
古明地こいし @redmizo_info さんが6年以上前に更新
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
みぞ @mizo0203 さんが6年以上前に更新
- ステータス を 進行中 から 解決 に変更
- 進捗率 を 40 から 80 に変更
更新履歴 github|5c8070114d4d0b10a7710ae1f11dbda07f0356a8 で適用されました。
みぞ @mizo0203 さんが6年以上前に更新
- ステータス を 解決 から フィードバック に変更
- 進捗率 を 80 から 20 に変更
UnitTest のバグあり
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 "/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'\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)
古明地こいし @redmizo_info さんが約6年前に更新
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
古明地こいし @redmizo_info さんが約6年前に更新
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