@pytest.fixture
def addon_with_files(db):
 addon = Addon.objects.create(name='My Addon', slug='my-addon')
 version = Version.objects.create(addon=addon)
 for status in [amo.STATUS_BETA, amo.STATUS_DISABLED, amo.STATUS_AWAITING_REVIEW, amo.STATUS_AWAITING_REVIEW]:
  File.objects.create(version=version, status=status)
 return addon

@ pytest . fixture def addon_with_files ( db ) : addon = Addon . objects . create ( name = 'My Addon' , slug = 'my-addon' ) version = Version . objects . create ( addon = addon ) for status in [ amo . STATUS_BETA , amo . STATUS_DISABLED , amo . STATUS_AWAITING_REVIEW , amo . STATUS_AWAITING_REVIEW ] : File . objects . create ( version = version , status = status ) return addon
return an add-on with one version and four files .