Re: Testing custom management commands

2010-05-15 Thread Russell Keith-Magee
On Sat, May 15, 2010 at 3:04 AM, ses1984 wrote: > I am interested in writing unit tests to cover some custom commands I > have written, but I'm unsure how I can pass options to these commands > through my unittest.TestCase classes. > > I have a command to import data from my client's flat file sys

Re: Testing custom management commands

2010-05-14 Thread ses1984
If I could add, in my tests, I was testing to see whether the command executed successfully and I was inspecting the state of the database after the command executed. On May 14, 3:04 pm, ses1984 wrote: > I am interested in writing unit tests to cover some custom commands I > have written, but I'm

Testing custom management commands

2010-05-14 Thread ses1984
I am interested in writing unit tests to cover some custom commands I have written, but I'm unsure how I can pass options to these commands through my unittest.TestCase classes. I have a command to import data from my client's flat file system into Django models, which originally existed as a NoAr