Thank Shawn

2011/1/11 Shawn Milochik <sh...@milochik.com>

> It sounds like you're doing everything correctly.
>
> Just a few thoughts:
>
>    Is your app definitely in INSTALLED_APPS in settings.py?
>

Yes


>
>    Check typos in fixture name and filename (and include extension in
> test).
>

Are ok.


>
>    Are you definitely using a Django TestCase instead of a unittest
> TestCase?
>

Yes.


>
> If all else fails, try adding your fixture path to FIXTURE_DIRS:
>
> http://docs.djangoproject.com/en/1.2/ref/django-admin/#django-admin-loaddata


I've added  FIXTURE_DIRS in my settings.py but same results...

This is my real initial code in file test.py:

from django.test import TestCase
from django.contrib.auth.models import User
from employee.models import Dipendente, CategoriaEconomica,
CategoriaGiuridica, Contratto
from organigramma.models import Organizzazione, UnitaOrganizzativa
from lesspaper.models import RichiestaAutorizzazioneStraordinario
from lesspaper.exceptions import AssegnamentoContrattoError

class CalcoloCostoRichistaStraordinarioTest(TestCase):
    fixtures = ['myfix',]
    # fixtures = ['myfix.json',]

    def setUp(self):
       ....
       ....

-- 
Simo

- Registered Linux User #395060

- Software is like sex, it is better when it is free  --> Linus B. Torvalds

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to