Re: skip fixtures loading on 'manage.py test myapp'
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 skip this fixtures and
> instead load some other ones or maybe no fixtures at all for certain tests.
> Is it possible?
Set the fixtures class attribute on your test class.
--
Melvyn Sopacua
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home