#Testing
##Generating django south fixture for text data
-
Change name of database in settings:
DATABASES = { 'default': { 'NAME': 'product_test',
-
Create new database with same permissions as regular database
-
python manage.py syncdb --all -
Massage data
-
python manage.py dumpdata --format=json --indent=4 app.ModelName > app/fixtures/test-modelname.json -
Add fixture.json to test fixture:
class TestModels(TestCase): fixtures = ['test_all_models.json']