Hi Matteo,
I use to make a hook to run "call_command":
@before.each_scenario
@before.outline
def reset_data(scenario, *args):
call_command('flush', interactive=False, verbosity=0)
call_command('loaddata', 'some_initial.json', verbosity=0)
And, when I need an specific fixture, I just create a step to load it:
Given I have a ferrari in my garage
@step('I have a ferrari in my garage')
def load_a_ferrari(step):
call_command('loaddata', 'ferrari.json', verbosity=0)
Best regards,