def set_preprint_providers():
 providers = {'osf': 'Open Science Framework', 'socarxiv': 'SocArXiv', 'engrxiv': 'EngrXiv', 'psyarxiv': 'PsyArXiv'}
 for (key, value) in providers.items():
  provider = factories.PreprintProviderFactory()
  provider._id = key
  provider.name = value
  try:
   provider.save()
  except KeyExistsException:
   continue

def set_preprint_providers ( ) : providers = { 'osf' : 'Open Science Framework' , 'socarxiv' : 'SocArXiv' , 'engrxiv' : 'EngrXiv' , 'psyarxiv' : 'PsyArXiv' } for ( key , value ) in providers . items ( ) : provider = factories . PreprintProviderFactory ( ) provider . _id = key provider . name = value try : provider . save ( ) except KeyExistsException : continue
populate preprintprovider to test database for testing .