バグ #426
test_post_ask_word_intent_2 (test_main.TestWebApp) ... ERROR:root:unsupported operand type(s) for +: 'NoneType' and 'unicode'
説明
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 "/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)