I have this directories structure
site/app_one/models.py
site/app_one/tests.py
site/app_one/fixtures/test.json
if I 'manage.py loaddata test' it works
if I 'manage.py test' it doesn't find fixtures
the test class starts with :
import unittest
from models import *
class TestSmooth(unittest.TestCase):
fixtures = ['test.json']
def testGetPrefisso(self):
p = Prefisso.objects.get(pre='01')
self.assertEquals(p.distretto, 'Italia Mobile')
[...]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---