On 5/26/06, Jorge Vargas <[EMAIL PROTECTED]> wrote:
> On 5/25/06, Liza <[EMAIL PROTECTED]> wrote:
>
> >
> > I have 40+ tests from a TG 0.8 app that I want to get running now that
> > I've more or less ported the app to the latest svn. The old tests
> > used my real MySQL DB, but that process seems to no longer works so I
> > figured I needed to move to sqlite for testing.
>
> could you eleborate on that, what happens, traceback,etc.
I would have but I don't get any traceback at all. The test just
fails if it was testing any database-related functionality -- just
testing static page content works fine.
Here's a complete test run with a single database-related test
(meanwhile I will look at the examples that you and Kevin sent --
thanks!)
$ nosetests
26/May/2006:14:52:53 CONFIG INFO Server parameters:
26/May/2006:14:52:53 CONFIG INFO server.environment: development
26/May/2006:14:52:53 CONFIG INFO server.log_to_screen: True
26/May/2006:14:52:53 CONFIG INFO server.log_file:
26/May/2006:14:52:53 CONFIG INFO server.log_tracebacks: True
26/May/2006:14:52:53 CONFIG INFO server.log_request_headers: True
26/May/2006:14:52:53 CONFIG INFO server.protocol_version: HTTP/1.0
26/May/2006:14:52:53 CONFIG INFO server.socket_host:
26/May/2006:14:52:53 CONFIG INFO server.socket_port: 8080
26/May/2006:14:52:53 CONFIG INFO server.socket_file:
26/May/2006:14:52:53 CONFIG INFO server.reverse_dns: False
26/May/2006:14:52:53 CONFIG INFO server.socket_queue_size: 5
26/May/2006:14:52:53 CONFIG INFO server.thread_pool: 10
/proj/rosen/tg/rosen/controllers.py:1: DeprecationWarning:
cherrypy.lib.filter has been superseded by cherrypy.filters and will
be removed in CP 2.3
from cherrypy.lib.filter.baseurlfilter import BaseUrlFilter
2006-05-26 14:52:55,180 turbogears.view DEBUG Loading base templates
F
======================================================================
FAIL: Running simple page test
----------------------------------------------------------------------
Traceback (most recent call last):
File "/my/project/test/test_controllers.py", line 18, in test_simple
assert "302" in response.status
AssertionError:
----------------------------------------------------------------------
Ran 1 test in 7.047s
FAILED (failures=1)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---