Re: Testing in Django - newbie questions on first test failure and coverage

2013-09-23 Thread Derek
Hi Yes, you are right: deleting the _fixture_setup method allows the tests to run successfully! I also do have all my fixture data stored in 'appname/fixtures/initial_data.json' so I assume from what you say that this data will only be loaded once for all the tests. Once I have more

Re: Testing in Django - newbie questions on first test failure and coverage

2013-09-23 Thread Derek
Hi Rafael Yes, you are right: deleting the _fixture_setup method allows the tests to run successfully! I also do have all my fixture data stored in 'appname/fixtures/initial_data.json' so I assume from what you say that this data will only be loaded once for all the tests. Once I have more

Re: Testing in Django - newbie questions on first test failure and coverage

2013-09-22 Thread Rafael Durán Castañeda
Hi, El 21/09/2013, a las 13:36, Derek escribió: > Rafael > > I appreciate your reply; below I try and explain further the reasoning behind > the approach I took. If you can respond to that, it would help. > > > Firstly, the issue of test file locations - there are

Re: Testing in Django - newbie questions on first test failure and coverage

2013-09-21 Thread Derek
Rafael I appreciate your reply; below I try and explain further the reasoning behind the approach I took. If you can respond to that, it would help. Firstly, the issue of test file locations - there are least two places I have found that recommend these be placed in a different directory:

Re: Testing in Django - newbie questions on first test failure and coverage

2013-09-16 Thread Rafael Durán Castañeda
Hi, Some answers inline and links at the end: 2013/9/15 Derek > I have an existing Django (1.4) project, with multiple apps and extensive > business logic, that I need to write tests for. Based on a day or two of > reading of the core Django docs and numerous blogs (each

Testing in Django - newbie questions on first test failure and coverage

2013-09-15 Thread Derek
I have an existing Django (1.4) project, with multiple apps and extensive business logic, that I need to write tests for. Based on a day or two of reading of the core Django docs and numerous blogs (each of which go about things subtly differently!?), I have made a start. As part of the seeming