Ticket #293 (new defect)
Django tester should be able to load fixtures
| Reported by: | windmill-trac@asheesh.org | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | triage |
| Version: | 1.1.x | Keywords: | |
| Cc: | Dependencies: |
Description
Django testing uses 'fixtures':
"Fixtures are a way of loading data into the database in bulk." < http://www.djangoproject.com/documentation/models/fixtures/>
In standard Django tests, fixtures are JSON-encoded snapshots of the database: Look at AnimalTestCase in http://docs.djangoproject.com/en/1.0/topics/testing/
It seems crucial to me that the Django support in Windmill allow the user to populate the test database with data from fixtures.
You can see how loaddata is implemented at http://code.djangoproject.com/browser/django/trunk/django/core/management/commands/loaddata.py?rev=7294 ; copy-pasting line 100-110 is all you'd need to reimplement it your self in a first pass.
