@before.each_scenario
def reset_data(scenario):
 LOGGER.debug('Flushing the test database...')
 call_command('flush', interactive=False, verbosity=0)
 world.absorb({}, 'scenario_dict')

@ before . each_scenario def reset_data ( scenario ) : LOGGER . debug ( 'Flushing the test database...' ) call_command ( 'flush' , interactive = False , verbosity = 0 ) world . absorb ( { } , 'scenario_dict' )
clean out the django test database defined in the envs/acceptance .