Jason Chu wrote: > > Right after running those commands, running nosetests in turbogears/widgets > outputs: > > [EMAIL PROTECTED] widgets]$ nosetests > ..........................................FEE................ > ====================================================================== > ERROR: tests.test_nested_form_controllers.test_form_translation_new_style > ---------------------------------------------------------------------- > Traceback (most recent call last): > File > "/usr/lib/python2.4/site-packages/nose-0.8.4-py2.4.egg/nose/core.py", line > 113, in runTest > self.testFunc() > File > "/home/jchu/coding/turbogears/turbogears/widgets/tests/test_nested_form_controllers.py", > line 44, in test_form_translation_new_style > assert root.name == "ed" > AttributeError: 'MyRoot' object has no attribute 'name' > -------------------- >> begin captured stdout << --------------------- > 08/Mar/2006:18:41:01 HTTP INFO Page handler: "The path > '/testform_new_style' was not found." > Traceback (most recent call last): > File > "/home/jchu/coding/turbogears/thirdparty/cherrypy/cherrypy/_cphttptools.py", > line 99, in _run > self.main() > File > "/home/jchu/coding/turbogears/thirdparty/cherrypy/cherrypy/_cphttptools.py", > line 240, in main > page_handler, object_path, virtual_path = self.mapPathToObject(path) > File > "/home/jchu/coding/turbogears/thirdparty/cherrypy/cherrypy/_cphttptools.py", > line 305, in mapPathToObject > raise cherrypy.NotFound(objectpath) > NotFound: 404 > Request Headers: > Host: localhost > localhost - - [08/Mar/2006:18:41:01] "GET > /testform_new_style?p_data.name=ed&p_data.age=5 HTTP/1.1" 404 1291 > > --------------------- >> end captured stdout << ---------------------- > > > ====================================================================== > ERROR: > tests.test_nested_form_controllers.test_invalid_form_with_error_handling > ---------------------------------------------------------------------- > Traceback (most recent call last): > File > "/usr/lib/python2.4/site-packages/nose-0.8.4-py2.4.egg/nose/core.py", line > 113, in runTest > self.testFunc() > File > "/home/jchu/coding/turbogears/turbogears/widgets/tests/test_nested_form_controllers.py", > line 52, in test_invalid_form_with_error_handling > assert root.has_errors > AttributeError: 'MyRoot' object has no attribute 'has_errors' > -------------------- >> begin captured stdout << --------------------- > 08/Mar/2006:18:41:01 HTTP INFO Page handler: "The path > '/testform_new_style' was not found." > Traceback (most recent call last): > File > "/home/jchu/coding/turbogears/thirdparty/cherrypy/cherrypy/_cphttptools.py", > line 99, in _run > self.main() > File > "/home/jchu/coding/turbogears/thirdparty/cherrypy/cherrypy/_cphttptools.py", > line 240, in main > page_handler, object_path, virtual_path = self.mapPathToObject(path) > File > "/home/jchu/coding/turbogears/thirdparty/cherrypy/cherrypy/_cphttptools.py", > line 305, in mapPathToObject > raise cherrypy.NotFound(objectpath) > NotFound: 404 > Request Headers: > Host: localhost > localhost - - [08/Mar/2006:18:41:01] "GET > /testform_new_style?p_data.name=ed&p_data.age=edalso HTTP/1.1" 404 1291 > > --------------------- >> end captured stdout << ---------------------- > > > ====================================================================== > FAIL: tests.test_link_inclusion.test_table_widget_js > ---------------------------------------------------------------------- > Traceback (most recent call last): > File > "/usr/lib/python2.4/site-packages/nose-0.8.4-py2.4.egg/nose/core.py", line > 113, in runTest > self.testFunc() > File > "/home/jchu/coding/turbogears/turbogears/widgets/tests/test_link_inclusion.py", > line 28, in test_table_widget_js > assert 'foo.js' in output > AssertionError: > -------------------- >> begin captured stdout << --------------------- > 08/Mar/2006:18:41:01 HTTP INFO Page handler: "The path '/test' was not > found." > Traceback (most recent call last): > File > "/home/jchu/coding/turbogears/thirdparty/cherrypy/cherrypy/_cphttptools.py", > line 99, in _run > self.main() > File > "/home/jchu/coding/turbogears/thirdparty/cherrypy/cherrypy/_cphttptools.py", > line 240, in main > page_handler, object_path, virtual_path = self.mapPathToObject(path) > File > "/home/jchu/coding/turbogears/thirdparty/cherrypy/cherrypy/_cphttptools.py", > line 305, in mapPathToObject > raise cherrypy.NotFound(objectpath) > NotFound: 404 > Request Headers: > Host: localhost > localhost - - [08/Mar/2006:18:41:01] "GET /test HTTP/1.1" 404 1263 > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > <html> > <head> > <meta http-equiv="Content-Type" content="text/html; > charset=utf-8"></meta> > <title>404 Not Found</title> > <style type="text/css"> > #powered_by { > margin-top: 20px; > border-top: 2px solid black; > font-style: italic; > } > > #traceback { > color: red; > } > </style> > </head> > <body> > <h2>404 Not Found</h2> > <p>The path '/test' was not found.</p> > <pre id="traceback">Page handler: "The path '/test' was not found." > Traceback (most recent call last): > File > "/home/jchu/coding/turbogears/thirdparty/cherrypy/cherrypy/_cphttptools.py", > line 99, in _run > self.main() > File > "/home/jchu/coding/turbogears/thirdparty/cherrypy/cherrypy/_cphttptools.py", > line 240, in main > page_handler, object_path, virtual_path = self.mapPathToObject(path) > File > "/home/jchu/coding/turbogears/thirdparty/cherrypy/cherrypy/_cphttptools.py", > line 305, in mapPathToObject > raise cherrypy.NotFound(objectpath) > NotFound: 404 > </pre> > <div id="powered_by"> > <span>Powered by <a href="http://www.cherrypy.org">CherryPy > 2.2.0rc1</a></span> > </div> > </body> > </html> > > > --------------------- >> end captured stdout << ---------------------- > > > ---------------------------------------------------------------------- > Ran 61 tests in 2.540s > > FAILED (failures=1, errors=2) > > If I add my mylocation patch I get the same output. It seems the action > variable is being read now... > > And now it's working on my end too... very very strange... You can close > the ticket, I suppose. >
Great that it works now! I will close the ticket then... Regarding those failing tests I just noticed them yesterday after upgrading from CP beta to CP rc1, I dunno what's going on, with CP beta they are all passing. :-/ Anyway I emailed Kevin to signal this. Thank you. Ciao Michele --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~----------~----~----~----~------~----~------~--~---

