@pytest.mark.django_db
def test_approve_addons_get_files_incomplete():
 addon = addon_factory(status=amo.STATUS_NULL)
 assert (approve_addons.get_files([addon.guid]) == [])

@ pytest . mark . django_db def test_approve_addons_get_files_incomplete ( ) : addon = addon_factory ( status = amo . STATUS_NULL ) assert ( approve_addons . get_files ( [ addon . guid ] ) == [ ] )
an incomplete add-on cant be approved .