Ah, turns out all you have to do is specify -
fixtures = [ 'initial_data' ]
... in the TestCase and it'll load all the initial_data fixtures from
all apps. Still a bit odd that loading initial_data fixtures isn't the
default in tests though.
On 3 October 2013 16:49, Sam Lai wrote:
> I'm try
I'm trying to test a Django management command in app X that parses
data files and inserts data into models that are located in apps Y and
Z. Apps Y and Z have initial_data.json files in them. On running my
test however, it seems that my initial_data fixtures are not being
loaded.
I could specify
2 matches
Mail list logo