プロジェクト

全般

プロフィール

バグ #426

test_post_ask_word_intent_2 (test_main.TestWebApp) ... ERROR:root:unsupported operand type(s) for +: 'NoneType' and 'unicode'

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

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

100%

予定工数:
作業時間:

説明

https://circleci.com/gh/mizo0203/google-home-shiritori/170

unittest-test-reports

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)
#1

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

Commit: 449178e404f72258612c945b90d04b652c636be1
https://github.com/mizo0203/google-home-shiritori/commit/449178e404f72258612c945b90d04b652c636be1
Author: みぞ@CrazyBeatCoder mizo0203@mizo0203.com
Date: 2018-09-15 (Sat, 15 Sep 2018)

Log Message:


fix(*.py): Fixed test_post_ask_word_intent_2 (test_main.TestWebApp). fix #426 @1.5h

#2

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

  • ステータス新規 から 解決 に変更
  • 進捗率0 から 80 に変更

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

#3

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

Commit: 449178e404f72258612c945b90d04b652c636be1
https://github.com/mizo0203/google-home-shiritori/commit/449178e404f72258612c945b90d04b652c636be1
Author: みぞ@CrazyBeatCoder mizo0203@mizo0203.com
Date: 2018-09-15 (Sat, 15 Sep 2018)

Log Message:


fix(*.py): Fixed test_post_ask_word_intent_2 (test_main.TestWebApp). fix #426 @1.5h

#4

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

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

a a さんが約6年前に更新

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

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