Hello all,

I've created a test fixtures replacement named
factory_boy<http://github.com/dnerdy/factory_boy>based on thoughtbot's
factory_girl for Ruby. Factories are extremely
maintainable and can make tests more readable. The framework can be used for
any Python project, and Django support is included.

- Have you ever added a field to a model and then realized that you needed
to update a bunch of tests because you were creating model instances in your
test setUp methods because dealing with fixtures can be really painful?
- Have you ever wondered what model values caused a method to return "April
1, 2010", and you couldn't tell from looking at the tests?
- Have you ever needed several slight variations of a model to test against
and you ended up duplicating the same fixture multiple times (which is now
somewhat hard to maintain)?
- Have you ever wondered if a certain example setup already exists in your
fixtures?

factory_boy is here to help alleviate some of these pains. I've found this
framework to be very useful and I wanted to share it with everyone. You may
find the framework especially useful if you're coming from Ruby/Rails and
you're missing that factory love. Interestingly, I'm not really from the
Ruby/Rails world... but I do appreciate good tools.

You can find documentation for factory_boy on the github page:
http://github.com/dnerdy/factory_boy

Getting started is as easy as:

easy_install factory_boy, or
pip install factory_boy

...which installs a package named 'factory'.

Enjoy!

- Mark

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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