Running tests in pytoolkit/trunk... ...... ---------------------------------------------------------------------- Ran 6 tests in 0.009s OK Running tests in calendero/trunk/calendero/calendero/tests... /home/laura/svn/calendero/trunk/calendero/calendero/model/__init__.py:9: DeprecationWarning: pylons.database is deprecated, and will be removed from a future version of Pylons. SQLAlchemy 0.3.x users are recommended to migrate to SAContext (http://cheeseshop.python.org/pypi/SAContext) for similar functionality from pylons.database import session_context as ctx Running setup_config() from calendero.websetup ................E............ERROR:calendero.controllers.calendar:Anonymous tried to delete calendar 110 ERROR:calendero.controllers.calendar:Anonymous tried to delete calendar 111 ERROR:calendero.controllers.calendar:Anonymous tried to delete calendar 112 ERROR:calendero.controllers.calendar:valid_uSerNämåöÖ tried to edit calendar 112 ERROR:calendero.controllers.calendar:valid_uSerNämåöÖ tried to edit calendar 111 ERROR:calendero.controllers.calendar:valid_uSerNämåöÖ tried to edit calendar 112 ERROR:calendero.controllers.calendar:User 530 does not have rights to delete calendar 111 ERROR:calendero.controllers.calendar:User 530 does not have rights to delete calendar 112 .EEEit has tags: ....................................................ERROR:calendero.controllers.login:ALERT: [unknown] tried to send new password for a non-existing user valid_uSerNämåöÖ ERROR:calendero.controllers.login:ALERT: [unknown] tried to send new password for a non-existing user valid_uSerNämåöÖ ...........ERROR:calendero.controllers.picture:User 556 does not have rights to edit picture 71 ERROR:calendero.controllers.picture:User 556 does not have rights to edit picture 71 ERROR:calendero.controllers.picture:Anonymous tried to delete picture 69 ERROR:calendero.controllers.picture:User 556 does not have rights to edit picture 71 ERROR:calendero.controllers.picture:User 556 does not have rights to delete picture 71 .............ERROR:calendero.controllers.sms:user with login xc34c34 not found ERROR:calendero.controllers.sms:user with login xc32c32 not found .......... ====================================================================== ERROR: test_calendar_buying (calendero.tests.functional.test_buying.TestBuying) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/laura/svn/calendero/trunk/calendero/calendero/tests/functional/test_buying.py", line 80, in test_calendar_buying cal = self._create_test_cal(name='expensive shitty calendar', price=self.price_class.id) File "/home/laura/svn/calendero/trunk/calendero/calendero/tests/__init__.py", line 96, in _create_test_cal response = self.app.get(url_for(controller='calendar', action='new')) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/fixture.py", line 209, in get return self.do_request(req, status=status) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/fixture.py", line 384, in do_request **req.environ) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/wsgilib.py", line 341, in raw_interactive app_iter = application(basic_environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/lint.py", line 170, in lint_app iterator = application(environ, start_response_wrapper) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/cascade.py", line 92, in __call__ return self.apps[-1](environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/registry.py", line 340, in __call__ app_iter = self.application(environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/recursive.py", line 80, in __call__ return self.application(environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/errordocument.py", line 185, in __call__ app_iter = self.application(environ, change_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/evalexception/middleware.py", line 186, in __call__ return self.respond(environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/error.py", line 231, in respond return self.application(environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/wsgiapp.py", line 315, in __call__ return self.app(environ, start_response) File "/usr/lib/python2.5/site-packages/Beaker-0.7.5-py2.5.egg/beaker/cache.py", line 180, in __call__ return self.app(environ, start_response) File "/usr/lib/python2.5/site-packages/Beaker-0.7.5-py2.5.egg/beaker/session.py", line 405, in __call__ response = self.wrap_app(environ, session_start_response) File "/usr/lib/python2.5/site-packages/Routes-1.7-py2.5.egg/routes/middleware.py", line 104, in __call__ response = self.app(environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/wsgiapp.py", line 95, in __call__ response = self.dispatch(controller, environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/wsgiapp.py", line 237, in dispatch return controller(environ, start_response) File "/home/laura/svn/calendero/trunk/calendero/calendero/lib/base.py", line 152, in __call__ return WSGIController.__call__(self, environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/controllers/core.py", line 164, in __call__ response = self._dispatch_call() File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/controllers/core.py", line 120, in _dispatch_call response = self._inspect_call(func) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/controllers/core.py", line 79, in _inspect_call result = func(**args) File "", line 1, in File "/home/laura/svn/calendero/trunk/calendero/calendero/lib/base.py", line 38, in require_login return func(*args, **kw) File "/home/laura/svn/calendero/trunk/calendero/calendero/controllers/calendar.py", line 324, in new return self.randomize_calendar_pictures(calendar.id, resuffle=True) File "", line 1, in File "/home/laura/svn/calendero/trunk/calendero/calendero/lib/base.py", line 38, in require_login return func(*args, **kw) File "/home/laura/svn/calendero/trunk/calendero/calendero/controllers/calendar.py", line 503, in randomize_calendar_pictures (hatch_smaller_max, hatch_bigger_max) = self._get_hatch_maximum_sizes(pic.width, pic.height) File "/home/laura/svn/calendero/trunk/calendero/calendero/controllers/calendar.py", line 44, in _get_hatch_maximum_sizes hatch_smaller_max = int(cal_width / 12) TypeError: unsupported operand type(s) for /: 'NoneType' and 'int' ====================================================================== ERROR: Test adding comments to a calendar. ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/laura/svn/calendero/trunk/calendero/calendero/tests/functional/test_calendar.py", line 351, in test_commenting response = self.app.get(url_for(controller='calendar', action='new')) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/fixture.py", line 209, in get return self.do_request(req, status=status) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/fixture.py", line 384, in do_request **req.environ) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/wsgilib.py", line 341, in raw_interactive app_iter = application(basic_environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/lint.py", line 170, in lint_app iterator = application(environ, start_response_wrapper) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/cascade.py", line 92, in __call__ return self.apps[-1](environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/registry.py", line 340, in __call__ app_iter = self.application(environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/recursive.py", line 80, in __call__ return self.application(environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/errordocument.py", line 185, in __call__ app_iter = self.application(environ, change_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/evalexception/middleware.py", line 186, in __call__ return self.respond(environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/error.py", line 231, in respond return self.application(environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/wsgiapp.py", line 315, in __call__ return self.app(environ, start_response) File "/usr/lib/python2.5/site-packages/Beaker-0.7.5-py2.5.egg/beaker/cache.py", line 180, in __call__ return self.app(environ, start_response) File "/usr/lib/python2.5/site-packages/Beaker-0.7.5-py2.5.egg/beaker/session.py", line 405, in __call__ response = self.wrap_app(environ, session_start_response) File "/usr/lib/python2.5/site-packages/Routes-1.7-py2.5.egg/routes/middleware.py", line 104, in __call__ response = self.app(environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/wsgiapp.py", line 95, in __call__ response = self.dispatch(controller, environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/wsgiapp.py", line 237, in dispatch return controller(environ, start_response) File "/home/laura/svn/calendero/trunk/calendero/calendero/lib/base.py", line 152, in __call__ return WSGIController.__call__(self, environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/controllers/core.py", line 164, in __call__ response = self._dispatch_call() File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/controllers/core.py", line 120, in _dispatch_call response = self._inspect_call(func) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/controllers/core.py", line 79, in _inspect_call result = func(**args) File "", line 1, in File "/home/laura/svn/calendero/trunk/calendero/calendero/lib/base.py", line 38, in require_login return func(*args, **kw) File "/home/laura/svn/calendero/trunk/calendero/calendero/controllers/calendar.py", line 324, in new return self.randomize_calendar_pictures(calendar.id, resuffle=True) File "", line 1, in File "/home/laura/svn/calendero/trunk/calendero/calendero/lib/base.py", line 38, in require_login return func(*args, **kw) File "/home/laura/svn/calendero/trunk/calendero/calendero/controllers/calendar.py", line 503, in randomize_calendar_pictures (hatch_smaller_max, hatch_bigger_max) = self._get_hatch_maximum_sizes(pic.width, pic.height) File "/home/laura/svn/calendero/trunk/calendero/calendero/controllers/calendar.py", line 44, in _get_hatch_maximum_sizes hatch_smaller_max = int(cal_width / 12) TypeError: unsupported operand type(s) for /: 'NoneType' and 'int' ====================================================================== ERROR: test_new (calendero.tests.functional.test_calendar.TestCalendarController) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/laura/svn/calendero/trunk/calendero/calendero/tests/functional/test_calendar.py", line 66, in test_new response = self.app.get(url_for(controller='calendar', action='set_background_picture', id=created_calendar, pic=pic_id1)) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/fixture.py", line 209, in get return self.do_request(req, status=status) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/fixture.py", line 384, in do_request **req.environ) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/wsgilib.py", line 341, in raw_interactive app_iter = application(basic_environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/lint.py", line 170, in lint_app iterator = application(environ, start_response_wrapper) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/cascade.py", line 92, in __call__ return self.apps[-1](environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/registry.py", line 340, in __call__ app_iter = self.application(environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/recursive.py", line 80, in __call__ return self.application(environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/errordocument.py", line 185, in __call__ app_iter = self.application(environ, change_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/evalexception/middleware.py", line 186, in __call__ return self.respond(environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/error.py", line 231, in respond return self.application(environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/wsgiapp.py", line 315, in __call__ return self.app(environ, start_response) File "/usr/lib/python2.5/site-packages/Beaker-0.7.5-py2.5.egg/beaker/cache.py", line 180, in __call__ return self.app(environ, start_response) File "/usr/lib/python2.5/site-packages/Beaker-0.7.5-py2.5.egg/beaker/session.py", line 405, in __call__ response = self.wrap_app(environ, session_start_response) File "/usr/lib/python2.5/site-packages/Routes-1.7-py2.5.egg/routes/middleware.py", line 104, in __call__ response = self.app(environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/wsgiapp.py", line 95, in __call__ response = self.dispatch(controller, environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/wsgiapp.py", line 237, in dispatch return controller(environ, start_response) File "/home/laura/svn/calendero/trunk/calendero/calendero/lib/base.py", line 152, in __call__ return WSGIController.__call__(self, environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/controllers/core.py", line 164, in __call__ response = self._dispatch_call() File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/controllers/core.py", line 120, in _dispatch_call response = self._inspect_call(func) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/controllers/core.py", line 79, in _inspect_call result = func(**args) File "", line 1, in File "/home/laura/svn/calendero/trunk/calendero/calendero/lib/base.py", line 38, in require_login return func(*args, **kw) File "/home/laura/svn/calendero/trunk/calendero/calendero/controllers/calendar.py", line 434, in set_background_picture self._regenerate_hatches(calendar, hatches, picture) File "/home/laura/svn/calendero/trunk/calendero/calendero/controllers/calendar.py", line 286, in _regenerate_hatches background_pic.height) File "/home/laura/svn/calendero/trunk/calendero/calendero/controllers/calendar.py", line 44, in _get_hatch_maximum_sizes hatch_smaller_max = int(cal_width / 12) TypeError: unsupported operand type(s) for /: 'NoneType' and 'int' ====================================================================== ERROR: Test rating calendar. ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/laura/svn/calendero/trunk/calendero/calendero/tests/functional/test_calendar.py", line 236, in test_rating_calendar response = self.app.get(url_for(controller='calendar', action='new')) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/fixture.py", line 209, in get return self.do_request(req, status=status) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/fixture.py", line 384, in do_request **req.environ) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/wsgilib.py", line 341, in raw_interactive app_iter = application(basic_environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/lint.py", line 170, in lint_app iterator = application(environ, start_response_wrapper) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/cascade.py", line 92, in __call__ return self.apps[-1](environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/registry.py", line 340, in __call__ app_iter = self.application(environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/recursive.py", line 80, in __call__ return self.application(environ, start_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/errordocument.py", line 185, in __call__ app_iter = self.application(environ, change_response) File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/evalexception/middleware.py", line 186, in __call__ return self.respond(environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/error.py", line 231, in respond return self.application(environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/wsgiapp.py", line 315, in __call__ return self.app(environ, start_response) File "/usr/lib/python2.5/site-packages/Beaker-0.7.5-py2.5.egg/beaker/cache.py", line 180, in __call__ return self.app(environ, start_response) File "/usr/lib/python2.5/site-packages/Beaker-0.7.5-py2.5.egg/beaker/session.py", line 405, in __call__ response = self.wrap_app(environ, session_start_response) File "/usr/lib/python2.5/site-packages/Routes-1.7-py2.5.egg/routes/middleware.py", line 104, in __call__ response = self.app(environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/wsgiapp.py", line 95, in __call__ response = self.dispatch(controller, environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/wsgiapp.py", line 237, in dispatch return controller(environ, start_response) File "/home/laura/svn/calendero/trunk/calendero/calendero/lib/base.py", line 152, in __call__ return WSGIController.__call__(self, environ, start_response) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/controllers/core.py", line 164, in __call__ response = self._dispatch_call() File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/controllers/core.py", line 120, in _dispatch_call response = self._inspect_call(func) File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.1-py2.5.egg/pylons/controllers/core.py", line 79, in _inspect_call result = func(**args) File "", line 1, in File "/home/laura/svn/calendero/trunk/calendero/calendero/lib/base.py", line 38, in require_login return func(*args, **kw) File "/home/laura/svn/calendero/trunk/calendero/calendero/controllers/calendar.py", line 324, in new return self.randomize_calendar_pictures(calendar.id, resuffle=True) File "", line 1, in File "/home/laura/svn/calendero/trunk/calendero/calendero/lib/base.py", line 38, in require_login return func(*args, **kw) File "/home/laura/svn/calendero/trunk/calendero/calendero/controllers/calendar.py", line 503, in randomize_calendar_pictures (hatch_smaller_max, hatch_bigger_max) = self._get_hatch_maximum_sizes(pic.width, pic.height) File "/home/laura/svn/calendero/trunk/calendero/calendero/controllers/calendar.py", line 44, in _get_hatch_maximum_sizes hatch_smaller_max = int(cal_width / 12) TypeError: unsupported operand type(s) for /: 'NoneType' and 'int' ---------------------------------------------------------------------- Ran 119 tests in 35.426s FAILED (errors=4) Validating XHTML... validating: http://localhost:8000/front validating: http://localhost:8000/registration *** Errors validating /tmp/tmp.ArCtAM8063: *** Error at line 1, character 1: missing document type declaration; assuming HTML 4.01 Transitional validating: http://localhost:8000/login/missing_password validating: http://localhost:8000/calendar/list?categ=public&sort=latest *** Errors validating /tmp/tmp.IxANXX8073: *** Error at line 112, character 9: end tag for "ul" which is not finished