Opened 13 years ago
Closed 13 years ago
#455 closed defect (duplicate)
Tests fail because of audio metadata table
Reported by: | joar | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | programming | Keywords: | |
Cc: | Parent Tickets: |
Description
➜ mediagoblin-responsible git:(master) ✗ ./runtests.sh Using ./bin/nosetests /usr/local/lib/python2.7/dist-packages/scikits/audiolab/soundio/play.py:48: UserWarning: Could not import alsa backend; most probably, you did not have alsa headers when building audiolab warnings.warn("Could not import alsa backend; most probably, " ..../home/joar/git/mediagoblin-responsible/local/lib/python2.7/site-packages/SQLAlchemy-0.7.5-py2.7-linux-x86_64.egg/sqlalchemy/engine/default.py:453: SAWarning: Unicode type received non-unicode bind param value. param.append(processors[key](compiled_params[key])) ................/home/joar/git/mediagoblin-responsible/mediagoblin/db/sql/open.py:63: SAWarning: At least one scoped session is already present. configure() can not affect sessions that have already been created. Session.configure(bind=engine) ...................E....................... ====================================================================== ERROR: mediagoblin.tests.test_submission.TestSubmission.test_delete ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/joar/git/mediagoblin-responsible/local/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/joar/git/mediagoblin-responsible/mediagoblin/tests/test_submission.py", line 183, in test_delete do_follow=True, url=delete_url) File "/home/joar/git/mediagoblin-responsible/mediagoblin/tests/test_submission.py", line 73, in do_post response = self.test_app.post(url, data, **kwargs) File "/home/joar/git/mediagoblin-responsible/local/lib/python2.7/site-packages/WebTest-1.3.3-py2.7.egg/webtest/app.py", line 807, in post content_type=content_type) File "/home/joar/git/mediagoblin-responsible/local/lib/python2.7/site-packages/WebTest-1.3.3-py2.7.egg/webtest/app.py", line 787, in _gen_request expect_errors=expect_errors) File "/home/joar/git/mediagoblin-responsible/local/lib/python2.7/site-packages/WebTest-1.3.3-py2.7.egg/webtest/app.py", line 1052, in do_request res = req.get_response(app, catch_exc_info=True) File "/home/joar/git/mediagoblin-responsible/local/lib/python2.7/site-packages/WebOb-1.1.1-py2.7.egg/webob/request.py", line 1082, in get_response application, catch_exc_info=True) File "/home/joar/git/mediagoblin-responsible/local/lib/python2.7/site-packages/WebOb-1.1.1-py2.7.egg/webob/request.py", line 1055, in call_application app_iter = application(self.environ, start_response) File "/home/joar/git/mediagoblin-responsible/local/lib/python2.7/site-packages/WebTest-1.3.3-py2.7.egg/webtest/lint.py", line 173, in lint_app iterator = application(environ, start_response_wrapper) File "/home/joar/git/mediagoblin-responsible/local/lib/python2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/urlmap.py", line 203, in __call__ return app(environ, start_response) File "/home/joar/git/mediagoblin-responsible/local/lib/python2.7/site-packages/Beaker-1.6.2-py2.7.egg/beaker/middleware.py", line 155, in __call__ return self.wrap_app(environ, session_start_response) File "/home/joar/git/mediagoblin-responsible/mediagoblin/app.py", line 201, in __call__ return self.call_backend(environ, start_response) File "/home/joar/git/mediagoblin-responsible/mediagoblin/app.py", line 188, in call_backend response = controller(request) File "/home/joar/git/mediagoblin-responsible/mediagoblin/decorators.py", line 117, in wrapper return controller(request, media=media, *args, **kwargs) File "/home/joar/git/mediagoblin-responsible/mediagoblin/decorators.py", line 50, in new_controller_func return controller(request, *args, **kwargs) File "/home/joar/git/mediagoblin-responsible/mediagoblin/decorators.py", line 66, in wrapper return controller(request, *args, **kwargs) File "/home/joar/git/mediagoblin-responsible/mediagoblin/user_pages/views.py", line 183, in media_confirm_delete media.delete() File "/home/joar/git/mediagoblin-responsible/mediagoblin/db/sql/base.py", line 85, in delete sess.delete(self) File "/home/joar/git/mediagoblin-responsible/local/lib/python2.7/site-packages/SQLAlchemy-0.7.5-py2.7-linux-x86_64.egg/sqlalchemy/orm/session.py", line 1269, in delete 'delete', state)) File "/home/joar/git/mediagoblin-responsible/local/lib/python2.7/site-packages/SQLAlchemy-0.7.5-py2.7-linux-x86_64.egg/sqlalchemy/orm/mapper.py", line 1814, in cascade_iterator parent_dict, visited_states, halt_on)) File "/home/joar/git/mediagoblin-responsible/local/lib/python2.7/site-packages/SQLAlchemy-0.7.5-py2.7-linux-x86_64.egg/sqlalchemy/orm/properties.py", line 821, in cascade_iterator passive=passive) File "/home/joar/git/mediagoblin-responsible/local/lib/python2.7/site-packages/SQLAlchemy-0.7.5-py2.7-linux-x86_64.egg/sqlalchemy/orm/state.py", line 122, in value_as_iterable x = impl.get(self, dict_, passive=passive) File "/home/joar/git/mediagoblin-responsible/local/lib/python2.7/site-packages/SQLAlchemy-0.7.5-py2.7-linux-x86_64.egg/sqlalchemy/orm/attributes.py", line 453, in get value = self.callable_(state, passive) File "/home/joar/git/mediagoblin-responsible/local/lib/python2.7/site-packages/SQLAlchemy-0.7.5-py2.7-linux-x86_64.egg/sqlalchemy/orm/strategies.py", line 508, in _load_for_state return self._emit_lazyload(session, state, ident_key) File "/home/joar/git/mediagoblin-responsible/local/lib/python2.7/site-packages/SQLAlchemy-0.7.5-py2.7-linux-x86_64.egg/sqlalchemy/orm/strategies.py", line 574, in _emit_lazyload result = q.all() File "/home/joar/git/mediagoblin-responsible/local/lib/python2.7/site-packages/SQLAlchemy-0.7.5-py2.7-linux-x86_64.egg/sqlalchemy/orm/query.py", line 1983, in all return list(self) File "/home/joar/git/mediagoblin-responsible/local/lib/python2.7/site-packages/SQLAlchemy-0.7.5-py2.7-linux-x86_64.egg/sqlalchemy/orm/query.py", line 2093, in __iter__ return self._execute_and_instances(context) File "/home/joar/git/mediagoblin-responsible/local/lib/python2.7/site-packages/SQLAlchemy-0.7.5-py2.7-linux-x86_64.egg/sqlalchemy/orm/query.py", line 2108, in _execute_and_instances result = conn.execute(querycontext.statement, self._params) File "/home/joar/git/mediagoblin-responsible/local/lib/python2.7/site-packages/SQLAlchemy-0.7.5-py2.7-linux-x86_64.egg/sqlalchemy/engine/base.py", line 1405, in execute params) File "/home/joar/git/mediagoblin-responsible/local/lib/python2.7/site-packages/SQLAlchemy-0.7.5-py2.7-linux-x86_64.egg/sqlalchemy/engine/base.py", line 1538, in _execute_clauseelement compiled_sql, distilled_params File "/home/joar/git/mediagoblin-responsible/local/lib/python2.7/site-packages/SQLAlchemy-0.7.5-py2.7-linux-x86_64.egg/sqlalchemy/engine/base.py", line 1646, in _execute_context context) File "/home/joar/git/mediagoblin-responsible/local/lib/python2.7/site-packages/SQLAlchemy-0.7.5-py2.7-linux-x86_64.egg/sqlalchemy/engine/base.py", line 1639, in _execute_context context) File "/home/joar/git/mediagoblin-responsible/local/lib/python2.7/site-packages/SQLAlchemy-0.7.5-py2.7-linux-x86_64.egg/sqlalchemy/engine/default.py", line 330, in do_execute cursor.execute(statement, parameters) OperationalError: (OperationalError) no such table: audio__mediadata u'SELECT audio__mediadata.media_entry AS audio__mediadata_media_entry \nFROM audio__mediadata \nWHERE ? = audio__mediadata.media_entry' (1,) -------------------- >> begin captured stdout << --------------------- -> Initializing main mediagoblin tables... done. -> Initializing media type "mediagoblin.media_types.image"... done. --------------------- >> end captured stdout << ---------------------- -------------------- >> begin captured logging << -------------------- mediagoblin.app: INFO: GNU MediaGoblin 0.3.1.dev main server starting mediagoblin.app: DEBUG: Using config file /home/joar/git/mediagoblin-responsible/mediagoblin/tests/test_mgoblin_app.ini mediagoblin.db.sql.open: DEBUG: Loading mediagoblin.media_types.image.models beaker.container: DEBUG: data file /home/joar/git/mediagoblin-responsible/mediagoblin/tests/test_user_dev/beaker/sessions/data/container_file/c/c9/c991cf5dd3d44d35b111d05c29a312c6.cache beaker.container: DEBUG: data file /home/joar/git/mediagoblin-responsible/mediagoblin/tests/test_user_dev/beaker/sessions/data/container_file/c/c9/c991cf5dd3d44d35b111d05c29a312c6.cache mediagoblin.processing.task: DEBUG: Processing <mediagoblin.db.sql.models.MediaEntry object at 0x4566c90> beaker.container: DEBUG: data file /home/joar/git/mediagoblin-responsible/mediagoblin/tests/test_user_dev/beaker/sessions/data/container_file/c/c9/c991cf5dd3d44d35b111d05c29a312c6.cache beaker.container: DEBUG: data file /home/joar/git/mediagoblin-responsible/mediagoblin/tests/test_user_dev/beaker/sessions/data/container_file/c/c9/c991cf5dd3d44d35b111d05c29a312c6.cache beaker.container: DEBUG: data file /home/joar/git/mediagoblin-responsible/mediagoblin/tests/test_user_dev/beaker/sessions/data/container_file/c/c9/c991cf5dd3d44d35b111d05c29a312c6.cache beaker.container: DEBUG: data file /home/joar/git/mediagoblin-responsible/mediagoblin/tests/test_user_dev/beaker/sessions/data/container_file/c/c9/c991cf5dd3d44d35b111d05c29a312c6.cache beaker.container: DEBUG: data file /home/joar/git/mediagoblin-responsible/mediagoblin/tests/test_user_dev/beaker/sessions/data/container_file/c/c9/c991cf5dd3d44d35b111d05c29a312c6.cache beaker.container: DEBUG: data file /home/joar/git/mediagoblin-responsible/mediagoblin/tests/test_user_dev/beaker/sessions/data/container_file/c/c9/c991cf5dd3d44d35b111d05c29a312c6.cache --------------------- >> end captured logging << --------------------- ---------------------------------------------------------------------- Ran 63 tests in 85.040s FAILED (errors=1)
Note:
See TracTickets
for help on using tickets.
This is a duplicate of #452.