Re: help with fixtures

2008-06-15 Thread Russell Keith-Magee
On Mon, Jun 16, 2008 at 2:43 PM, Gene Campbell <[EMAIL PROTECTED]> wrote: > > Many thanks for a very helpful response!! > > At this point, I assume the proper practice is to create the users in > a setup() method when unittesting instead of assuming they'll be > brought up automatically when testi

Re: help with fixtures

2008-06-15 Thread Gene Campbell
Many thanks for a very helpful response!! At this point, I assume the proper practice is to create the users in a setup() method when unittesting instead of assuming they'll be brought up automatically when testing. (Sorry, it's been a long day - I hope that makes sense.) On Mon, Jun 16, 2008

Re: help with fixtures

2008-06-15 Thread Russell Keith-Magee
On Mon, Jun 16, 2008 at 11:36 AM, ristretto <[EMAIL PROTECTED]> wrote: > > I'm running into this too. Can someone confirm this related to MySQL > InnoDB tables or not? This is unrelated to MySQL or InnoDB (although that configuration will cause some difficulties with fixtures that have circular

Fwd: help with fixtures

2008-06-15 Thread ristretto
nt=2 myapp > initial_data.json But, that json data doesn't have any users in it. The tests need users, so I'd like to have them in the fixture. Can some one shed some light please? -- Forwarded message -- From: "Russell Keith-Magee" <[EMAIL PROTECTED]> Date: Aug 24

Re: help with fixtures

2007-09-19 Thread Peter Klein
Hi Alex, I had the same problem and it almost drove me crazy. I even changed from MySQL to PostgreSQL to rule out the MySQL-DB constraints issue. But the solution was far more simple: the command 'syncdb' already populates some tables, e.g. django_content_types and loaddata therefore tries to up

Re: help with fixtures

2007-08-23 Thread Russell Keith-Magee
On 8/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Then, I am have exported data in all various formats, with hope that > one of them would work: > > ./manage.py dumpdata --format=python > data.python Python fixtures aren't really intended for use by end users - its an internal format t

Re: help with fixtures

2007-08-23 Thread Michael
Hi Alex, might be worth including the data.json output for people to take a look at. -Michael On Aug 24, 5:15 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I have quite complex application and want to make test suite for it. > Since its complex, I need some data being populated first, so

help with fixtures

2007-08-23 Thread [EMAIL PROTECTED]
I have quite complex application and want to make test suite for it. Since its complex, I need some data being populated first, so trying to find out how to make fixtures working. I think I am doing something absolutely wrong way. Since yesterday trying to make fixtures working and get one proble