skip fixtures loading on 'manage.py test myapp'

2012-08-19 Thread Anton Baklanov
Hi! When I'm running 'manage.py test myapp' it loads all fixtures that are in 'myapp/fixtures' directory. And what I want is to find a way to tell django skip this fixtures and instead load some other ones or maybe no fixtures at all for certain tests. Is it possible? -- Regards, Anton Baklanov

Re: skip fixtures loading on 'manage.py test myapp'

2012-08-20 Thread Melvyn Sopacua
On 19-8-2012 19:05, Anton Baklanov wrote: > When I'm running 'manage.py test myapp' it loads all fixtures that are in > 'myapp/fixtures' directory. Are you sure about that? I think it only loads what is loaded also with syncdb, so initial_data.*. > And what I want is to find a way to tell django

Re: skip fixtures loading on 'manage.py test myapp'

2012-08-20 Thread Anton Baklanov
Hi Melvyn! Just tested it on dummy project, and you are right - django itself does not do anything like that. Problem is in South - when i remove it from INSTALLED_APPS 'manage.py test myapp' does not load any fixtures except 'initial_data'. So, i'm going to south sources now. Thanks! On Mon, A

Re: skip fixtures loading on 'manage.py test myapp'

2012-08-20 Thread Anton Baklanov
and, if anyone is interested, here is the answer - http://south.readthedocs.org/en/latest/settings.html#south-tests-migrate On Mon, Aug 20, 2012 at 7:36 PM, Anton Baklanov wrote: > Hi Melvyn! > > Just tested it on dummy project, and you are right - django itself does > not do anything like that.

Re: skip fixtures loading on 'manage.py test myapp'

2012-08-21 Thread Karen Tracey
On Mon, Aug 20, 2012 at 12:40 PM, Anton Baklanov wrote: > and, if anyone is interested, here is the answer - > http://south.readthedocs.org/en/latest/settings.html#south-tests-migrate > > That link doesn't really explain why south would be loading fixtures that Django itself wouldn't ordinarily lo

Re: skip fixtures loading on 'manage.py test myapp'

2012-08-22 Thread Anton Baklanov
exactly On Wed, Aug 22, 2012 at 2:24 AM, Karen Tracey wrote: > That link doesn't really explain why south would be loading fixtures that > Django itself wouldn't ordinarily load. Unless...do you have migrations > that are loading fixtures? > -- Regards, Anton Baklanov -- You received this