when you run a test the django fixture discoverer search in all fixture
subfolder in apps registered in settings.INSTALLED_APPS.
you don't need __init__.py file nor FIXTURE_DIRS (fixture folder is a
subfolder of app folder, isn't it?).
did you add fixture param in yr test class?
what version of
'/myapps/fixtures' is treated as absolute path. Try removing leading slash
to make it relative. Either you can write full absolute path to the
directory.
thanks,
Eugene
On Thursday, August 14, 2014 9:05:30 PM UTC+4, Daniel Grace wrote:
>
> I created a fixtures file called testdata.xml in a fix
I created a fixtures file called testdata.xml in a fixtures folder, but I
can't load the fixtures file into the database.
I placed an __init__.py file in the fixtures folder (not sure about this
step, is it needed?)
I put the fixtures directory in settings.py:
FIXTURE_DIRS = (
'/myapp/fixtur
3 matches
Mail list logo