Guest User

Untitled

a guest
Apr 16th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.85 KB | None | 0 0
  1. [root@stagevids web]# ./run_tests.sh
  2. /usr/lib/python2.6/site-packages/django/db/backends/mysql/base.py:73: RuntimeWarning: MySQL received a naive datetime (2014-06-30 23:19:24) while time zone support is active.
  3. RuntimeWarning)
  4. prepare_patterns.controller_url: 'videos'
  5. prepare_patterns.controller_url: 'accounts'
  6. prepare_patterns.controller_url: 'artists'
  7. prepare_patterns.controller_url: 'venues'
  8. prepare_patterns.controller_url: 'events'
  9. prepare_patterns.controller_url: 'notifications'
  10. prepare_patterns.controller_url: 'comments'
  11. prepare_patterns.controller_url: 'messages'
  12. prepare_patterns.controller_url: 'series'
  13. prepare_patterns.controller_url: 'badges'
  14. prepare_patterns.controller_url: 'lineup'
  15. prepare_patterns.controller_url: 'api/auth'
  16. prepare_patterns.controller_url: 'api/videos'
  17. prepare_patterns.controller_url: 'api/users'
  18. prepare_patterns.controller_url: 'api/notifications'
  19. prepare_patterns.controller_url: 'api/chat/conversations'
  20. prepare_patterns.controller_url: 'api/chat/messages'
  21. prepare_patterns.controller_url: 'api/events'
  22. prepare_patterns.controller_url: 'api/references'
  23. prepare_patterns.controller_url: 'api/pins'
  24. prepare_patterns.controller_url: 'api/artists'
  25. prepare_patterns.controller_url: 'api/comments'
  26. prepare_patterns.controller_url: 'web/videos'
  27. prepare_patterns.controller_url: 'web/home'
  28. prepare_patterns.controller_url: 'web/events'
  29. prepare_patterns.controller_url: 'web/users'
  30. prepare_patterns.controller_url: 'web/auth'
  31. prepare_patterns.controller_url: 'web/comments'
  32. prepare_patterns.controller_url: 'web/notifications'
  33. prepare_patterns.controller_url: 'administrator/videos'
  34. prepare_patterns.controller_url: 'administrator/events'
  35. prepare_patterns.controller_url: 'administrator/artists'
  36. prepare_patterns.controller_url: 'administrator/advanced'
  37. [2016-04-16 20:51:27] response_status(/administrator/videos/add_item): 200
  38. .[2016-04-16 20:51:27] response_status(/administrator/videos/get_video_info): 200
  39. [2016-04-16 20:51:27] response_status(/administrator/videos/get_video_info): 200
  40. .push_notification.[user, message]: (43L, 'serg has commented your video Electric Daisy Carnival Las Vegas Jun. 21, 2015 - Alison Wonderland')
  41. [2016-04-16 20:51:27] response_status(api/comments/add_comment): 200
  42. .[2016-04-16 20:51:27] response_status(api/comments/add_subcomment): 200
  43. .[2016-04-16 20:51:27] response_status(api/comments/get_comments): 200
  44. .E[2016-04-16 20:51:28] response_status(api/users/info): 200
  45. .[2016-04-16 20:51:28] response_status(api/videos/get_360_video): 200
  46. .E/usr/lib/python2.6/site-packages/django/db/backends/mysql/base.py:73: RuntimeWarning: MySQL received a naive datetime (2016-03-17 20:51:28.389777) while time zone support is active.
  47. RuntimeWarning)
  48. /usr/lib/python2.6/site-packages/django/db/backends/mysql/base.py:73: RuntimeWarning: MySQL received a naive datetime (2016-03-17 20:51:28.394967) while time zone support is active.
  49. RuntimeWarning)
  50. [2016-04-16 20:51:28] response_status(api/videos/recent): 200
  51. .[2016-04-16 20:51:28] response_status(api/videos/search): 200
  52. [2016-04-16 20:51:28] response_status(api/videos/search): 200
  53. .[2016-04-16 20:51:28] response_status(api/videos/status): 200
  54. .E[2016-04-16 20:51:28] response_status(api/artists/auto_complete): 200
  55. .[2016-04-16 20:51:29] response_status(web/events/popular): 200
  56. .[2016-04-16 20:51:29] response_status(web/events/recent): 200
  57. E[2016-04-16 20:51:29] response_status(web/users/info): 200
  58. ./usr/lib/python2.6/site-packages/django/db/backends/mysql/base.py:73: RuntimeWarning: MySQL received a naive datetime (2016-03-17 20:51:29.677229) while time zone support is active.
  59. RuntimeWarning)
  60. /usr/lib/python2.6/site-packages/django/db/backends/mysql/base.py:73: RuntimeWarning: MySQL received a naive datetime (2016-03-17 20:51:29.679166) while time zone support is active.
  61. RuntimeWarning)
  62. [2016-04-16 20:51:29] response_status(web/users/shared_videos): 200
  63. .[2016-04-16 20:51:29] response_status(web/videos/get_360_video): 200
  64. .E[2016-04-16 20:51:29] response_status(web/videos/playlist): 200
  65. [2016-04-16 20:51:29] response_status(web/videos/playlist): 200
  66. [2016-04-16 20:51:30] response_status(web/videos/playlist): 200
  67. [2016-04-16 20:51:30] response_status(web/videos/playlist): 200
  68. [2016-04-16 20:51:30] response_status(web/videos/playlist): 200
  69. [2016-04-16 20:51:30] response_status(web/videos/playlist): 200
  70. [2016-04-16 20:51:30] response_status(web/videos/playlist): 200
  71. [2016-04-16 20:51:30] response_status(web/videos/playlist): 200
  72. [2016-04-16 20:51:31] response_status(web/videos/playlist): 200
  73. [2016-04-16 20:51:31] response_error(web/videos/playlist): '{"error": true}'
  74. F[2016-04-16 20:51:31] response_status(web/videos/popular): 200
  75. .[2016-04-16 20:51:31] response_status(web/videos/recent): 200
  76. .[2016-04-16 20:51:31] response_status(web/videos/sharing): 200
  77. .
  78. ======================================================================
  79. ERROR: test_like_comment (unit_tests.test_api_comments.TestApiComments)
  80. ----------------------------------------------------------------------
  81. Traceback (most recent call last):
  82. File "/var/www/vhosts/epv/web/unit_tests/test_api_comments.py", line 50, in test_like_comment
  83. response = self.client.post('/api/comments/like_comment', data)
  84. File "/usr/lib/python2.6/site-packages/django/test/client.py", line 483, in post
  85. response = super(Client, self).post(path, data=data, content_type=content_type, **extra)
  86. File "/usr/lib/python2.6/site-packages/django/test/client.py", line 302, in post
  87. return self.request(**r)
  88. File "/usr/lib/python2.6/site-packages/django/test/client.py", line 444, in request
  89. six.reraise(*exc_info)
  90. File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 114, in get_response
  91. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  92. File "/usr/lib/python2.6/site-packages/django/views/decorators/csrf.py", line 57, in wrapped_view
  93. return view_func(*args, **kwargs)
  94. File "/var/www/vhosts/epv/web/controllers/__init__.py", line 86, in __call__
  95. res = getattr(controller, self.method)(*args, **kwargs)
  96. File "/var/www/vhosts/epv/web/controllers/api/decorators.py", line 7, in wrap
  97. res = function(self, *args, **kwargs)
  98. File "/var/www/vhosts/epv/web/controllers/api/decorators.py", line 17, in wrap
  99. res = function(self, *args, **kwargs)
  100. File "/var/www/vhosts/epv/web/controllers/api/comments.py", line 107, in like_comment
  101. self.event_notifier.user_liked_comment(id, current_user, comment['user_id'], comment['video_id'])
  102. TypeError: 'NoneType' object is unsubscriptable
  103.  
  104. ======================================================================
  105. ERROR: test_like (unit_tests.test_api_videos.TestApiVideos)
  106. ----------------------------------------------------------------------
  107. Traceback (most recent call last):
  108. File "/var/www/vhosts/epv/web/unit_tests/test_api_videos.py", line 65, in test_like
  109. response = self.client.post('/api/videos/like', data)
  110. File "/usr/lib/python2.6/site-packages/django/test/client.py", line 483, in post
  111. response = super(Client, self).post(path, data=data, content_type=content_type, **extra)
  112. File "/usr/lib/python2.6/site-packages/django/test/client.py", line 302, in post
  113. return self.request(**r)
  114. File "/usr/lib/python2.6/site-packages/django/test/client.py", line 444, in request
  115. six.reraise(*exc_info)
  116. File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 114, in get_response
  117. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  118. File "/usr/lib/python2.6/site-packages/django/views/decorators/csrf.py", line 57, in wrapped_view
  119. return view_func(*args, **kwargs)
  120. File "/var/www/vhosts/epv/web/controllers/__init__.py", line 86, in __call__
  121. res = getattr(controller, self.method)(*args, **kwargs)
  122. File "/var/www/vhosts/epv/web/controllers/api/decorators.py", line 17, in wrap
  123. res = function(self, *args, **kwargs)
  124. File "/var/www/vhosts/epv/web/controllers/api/decorators.py", line 7, in wrap
  125. res = function(self, *args, **kwargs)
  126. File "/var/www/vhosts/epv/web/controllers/api/videos.py", line 417, in like
  127. self.video.update_likes(video_id)
  128. File "/var/www/vhosts/epv/web/lib/database/video_storage.py", line 714, in update_likes
  129. self.update_by_id(id, dict(likes=likes))
  130. File "/var/www/vhosts/epv/web/lib/database/base_storage.py", line 198, in update_by_id
  131. self.update(data, { self._id_field: id }, debug=debug)
  132. File "/var/www/vhosts/epv/web/lib/database/base_storage.py", line 192, in update
  133. self._execute(command, values)
  134. File "/var/www/vhosts/epv/web/lib/database/base_storage.py", line 63, in _execute
  135. self._cursor.execute(*args, **kwargs)
  136. File "/usr/lib/python2.6/site-packages/MySQLdb/cursors.py", line 173, in execute
  137. self.errorhandler(self, exc, value)
  138. File "/usr/lib/python2.6/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
  139. raise errorclass, errorvalue
  140. OperationalError: (1449, "The user specified as a definer ('epv'@'localhost') does not exist")
  141.  
  142. ======================================================================
  143. ERROR: test_unlike (unit_tests.test_api_videos.TestApiVideos)
  144. ----------------------------------------------------------------------
  145. Traceback (most recent call last):
  146. File "/var/www/vhosts/epv/web/unit_tests/test_api_videos.py", line 77, in test_unlike
  147. response = self.client.post('/api/videos/unlike', data)
  148. File "/usr/lib/python2.6/site-packages/django/test/client.py", line 483, in post
  149. response = super(Client, self).post(path, data=data, content_type=content_type, **extra)
  150. File "/usr/lib/python2.6/site-packages/django/test/client.py", line 302, in post
  151. return self.request(**r)
  152. File "/usr/lib/python2.6/site-packages/django/test/client.py", line 444, in request
  153. six.reraise(*exc_info)
  154. File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 114, in get_response
  155. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  156. File "/usr/lib/python2.6/site-packages/django/views/decorators/csrf.py", line 57, in wrapped_view
  157. return view_func(*args, **kwargs)
  158. File "/var/www/vhosts/epv/web/controllers/__init__.py", line 86, in __call__
  159. res = getattr(controller, self.method)(*args, **kwargs)
  160. File "/var/www/vhosts/epv/web/controllers/api/decorators.py", line 17, in wrap
  161. res = function(self, *args, **kwargs)
  162. File "/var/www/vhosts/epv/web/controllers/api/decorators.py", line 7, in wrap
  163. res = function(self, *args, **kwargs)
  164. File "/var/www/vhosts/epv/web/controllers/api/videos.py", line 447, in unlike
  165. self.video.update_likes(video_id)
  166. File "/var/www/vhosts/epv/web/lib/database/video_storage.py", line 714, in update_likes
  167. self.update_by_id(id, dict(likes=likes))
  168. File "/var/www/vhosts/epv/web/lib/database/base_storage.py", line 198, in update_by_id
  169. self.update(data, { self._id_field: id }, debug=debug)
  170. File "/var/www/vhosts/epv/web/lib/database/base_storage.py", line 192, in update
  171. self._execute(command, values)
  172. File "/var/www/vhosts/epv/web/lib/database/base_storage.py", line 63, in _execute
  173. self._cursor.execute(*args, **kwargs)
  174. File "/usr/lib/python2.6/site-packages/MySQLdb/cursors.py", line 173, in execute
  175. self.errorhandler(self, exc, value)
  176. File "/usr/lib/python2.6/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
  177. raise errorclass, errorvalue
  178. OperationalError: (1449, "The user specified as a definer ('epv'@'localhost') does not exist")
  179.  
  180. ======================================================================
  181. ERROR: test_recent (unit_tests.test_web_events.TestEvents)
  182. ----------------------------------------------------------------------
  183. Traceback (most recent call last):
  184. File "/var/www/vhosts/epv/web/unit_tests/test_web_events.py", line 50, in test_recent
  185. self.assertTrue(e_date > current_date, 'incorrect date_start: date before now')
  186. TypeError: can't compare datetime.datetime to unicode
  187.  
  188. ======================================================================
  189. ERROR: test_increment_views_count (unit_tests.test_web_videos.TestVideos)
  190. ----------------------------------------------------------------------
  191. Traceback (most recent call last):
  192. File "/var/www/vhosts/epv/web/unit_tests/test_web_videos.py", line 67, in test_increment_views_count
  193. response = self.client.post('/web/videos/increment_views_count', data)
  194. File "/usr/lib/python2.6/site-packages/django/test/client.py", line 483, in post
  195. response = super(Client, self).post(path, data=data, content_type=content_type, **extra)
  196. File "/usr/lib/python2.6/site-packages/django/test/client.py", line 302, in post
  197. return self.request(**r)
  198. File "/usr/lib/python2.6/site-packages/django/test/client.py", line 444, in request
  199. six.reraise(*exc_info)
  200. File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 114, in get_response
  201. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  202. File "/usr/lib/python2.6/site-packages/django/views/decorators/csrf.py", line 57, in wrapped_view
  203. return view_func(*args, **kwargs)
  204. File "/var/www/vhosts/epv/web/controllers/__init__.py", line 86, in __call__
  205. res = getattr(controller, self.method)(*args, **kwargs)
  206. File "/var/www/vhosts/epv/web/controllers/web/decorators.py", line 17, in wrap
  207. res = function(self, *args, **kwargs)
  208. File "/var/www/vhosts/epv/web/controllers/web/videos.py", line 182, in increment_views_count
  209. self.video.increment_views_count(form_data.pop('id'))
  210. File "/var/www/vhosts/epv/web/lib/database/video_storage.py", line 703, in increment_views_count
  211. self.update_by_id(id, dict(views=count))
  212. File "/var/www/vhosts/epv/web/lib/database/base_storage.py", line 198, in update_by_id
  213. self.update(data, { self._id_field: id }, debug=debug)
  214. File "/var/www/vhosts/epv/web/lib/database/base_storage.py", line 192, in update
  215. self._execute(command, values)
  216. File "/var/www/vhosts/epv/web/lib/database/base_storage.py", line 63, in _execute
  217. self._cursor.execute(*args, **kwargs)
  218. File "/usr/lib/python2.6/site-packages/MySQLdb/cursors.py", line 173, in execute
  219. self.errorhandler(self, exc, value)
  220. File "/usr/lib/python2.6/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
  221. raise errorclass, errorvalue
  222. OperationalError: (1449, "The user specified as a definer ('epv'@'localhost') does not exist")
  223.  
  224. ======================================================================
  225. FAIL: test_playlist (unit_tests.test_web_videos.TestVideos)
  226. ----------------------------------------------------------------------
  227. Traceback (most recent call last):
  228. File "/var/www/vhosts/epv/web/unit_tests/test_web_videos.py", line 37, in test_playlist
  229. self.assertEqual(res['error'], False)
  230. AssertionError: True != False
  231.  
  232. ----------------------------------------------------------------------
  233. Ran 24 tests in 4.552s
  234.  
  235. FAILED (failures=1, errors=5)
Advertisement
Add Comment
Please, Sign In to add comment