codeeu / coding-events

A Django app for adding EU Code Week events and showing them on a map.
http://events.codeweek.eu
MIT License
17 stars 36 forks source link

refactor tests to use FactoryBoy for easier maintainance #306

Open jurecuhalev opened 9 years ago

jurecuhalev commented 9 years ago

Factory boy: http://factoryboy.readthedocs.org/en/latest/ Some slides: http://slides.xelnor.net/2012/pyconfr/factory_boy/

sparkica commented 9 years ago

Looks cool :+1:

goranche commented 9 years ago

sheesh, the slides are hypersensitive (useless on a MBP with the trackpad)

jurecuhalev commented 9 years ago

I've created basic implementation of FactoryBoy and cleaned up two tests.

A lot of tests in test_events_processors rely on order of tests so I would like to look at those in a separate pull request.

If you feel this is enough of a change, I'll make a PR, otherwise I can further refactor tests.