A używasz klasy TestCase z django.test do pisania unit testów? i tam
wskazujesz jakie fixturki załadować do testów?
http://www.djangoproject.com/documentation/testing/#fixture-loading
Przykład unit testu ładującego fixturki:
from django.test import TestCase
from myapp.models import Animal
class AnimalTestCase(TestCase):
fixtures = ['mammals.json', 'birds']
def setUp(self):
# Test definitions as before.
def testFluffyAnimals(self):
# A test that uses the fixtures.