Ticket #293 (new defect)

Opened 10 months ago

Last modified 4 weeks ago

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.

Change History

Changed 9 months ago by mikeal

  • milestone changed from 1.2 to 1.3

Pushing out all non-regressions to 1.3

Changed 4 weeks ago by sim

 decoration Changed 1 year ago by admin

 bathtub Changed 1 year ago by admin

 solar system Changed 1 year ago by admin

 stair parts Changed 1 year ago by admin

 solar supply Changed 1 year ago by admin

Note: See TracTickets for help on using tickets.