Majic Projects
previous_open_issue.png
Go to the previous open issue
previous_issue.png
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
enhancement_small.png
Closed Enhancement CONNT-18 Switch to using factory_boy instead of fixtures for testing
next_issue.png
Go to the next issue (open or closed)
next_open_issue.png
Go to the next open issue
icon_info.png This issue has been closed with status "Fixed" and resolution "RESOLVED".
Issue basics
  • Type of issue
    Enhancement
  • Category
    Not determined
  • Targetted for
    0.1
  • Status
    Fixed
  • Progress
  • Priority
    Not determined
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (1)
People involved
Times and dates
  • Posted at
  • Last updated
  • Estimated time
    Not estimated
  • Time spent
    No time spent
    Click here to see time logged against this issue
Issue details
  • Resolution
    RESOLVED
Attachments (0)
There is nothing attached to this issue
Commits (1)
 branko (branko)
Sep 19, 2013 - 11:10
CONNT-18CONNT-18 Switched to using factory_boy and dynamic data generation instead of using fixtures for tests.
Duplicate issues (0)
This issue does not have any duplicates
Description
Current tests are using the fixtures for generating test data. This causes a couple of problems:

* In case of database schema updates, fixtures need to be regenerated manually.
* Adding new data is a tedious-repetative 5-step process (dump db, syncdb, load fixtures, update, dump fixtures)

Instead of using fixtures, it would be better to use factory_boy that is well tailored for creating sample data:

https://github.com/rbarrois/factory_boy
Comments ()
History