At the time I asked the question I just had the sense that I wanted to
debug an issue by bringing up the web interface midway through my
test. I attempted to do things like stop midway through the test via
set_trace() and then ctrl-c, then look at the db from a runserver run
that was pointing to
On Thu, Jun 2, 2011 at 10:04 AM, Margie Roginski
wrote:
> Karen Tracy, if you are reading this, could you comment?
>
> As the person that seems to be most knowledgable about django testing
> (your Django 1.1 Testing book is fantastic - I highly recommend it!),
> can you
What I've done to do this is insert a pdb.set_trace() right before the
place your test fails, then in pdb do Ctrl+C to break out of the test.
This leaves your test database intact at that state. Then you can
change your settings to point to the test database instead of your
regular one. Then you
Karen Tracy, if you are reading this, could you comment?
As the person that seems to be most knowledgable about django testing
(your Django 1.1 Testing book is fantastic - I highly recommend it!),
can you confirm that something like this is the best way to go? It
seems strange to me that there
On Wed, Jun 01, 2011 at 11:59:28AM -0700, Margie Roginski wrote:
> That's a good pointer, thanks. However I'm still confused about how I
> can actually dump out the data from my test run? For example, say I
> have a particular test and I want to dump the data at some certain
> point. I can put
..@yahoo.com> wrote:
>
> > Anyone know if there is a way to save out a test database that is
> > created through the django TestCase module?
>
> I think this gets you close:
>
> https://docs.djangoproject.com/en/1.2/ref/django-admin/#testserver-fi...
>
> django
On May 29, 2011, at 7:13 PM, Margie Roginski <margierogin...@yahoo.com> wrote:
> Anyone know if there is a way to save out a test database that is
> created through the django TestCase module?
>
I think this gets you close:
https://docs.djangoproject.com/en/1.2/ref/django-ad
Anyone know if there is a way to save out a test database that is
created through the django TestCase module?
IE, say I have a test that runs part way through. I'd like to save
it out and then modify my settings.py to refer to the saved out test
database and take a look at it via my web client
8 matches
Mail list logo