I've been using factory-boy as of late, and have found it to be a great way 
to setup each test exactly as I need it.  Fixtures aren't bad either, but 
working with a large amount of data can make it difficult to predict the 
proper output for a test, and changes to this data to accommodate a new 
test situation could affect others. 

You could setup a group of test records in the setup method of a test class 
to be used for several tests.

Keep your tests focused, and you'll find you won't need a huge batch of 
data to get good coverage.


>
>
 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/ixLvFEgiF00J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to