def provider_two(self): provider = CollectionProviderFactory(name='Spotarxiv') provider.allow_submissions = False provider.domain = 'https://www.spotarxiv.com' provider.description = 'spots not dots' provider.domain_redirect_enabled = True provider._id = 'spot' provider.save() return provider
def collection_public(self, user): return CollectionFactory(creator=user, provider=CollectionProviderFactory(), is_public=True, status_choices=['', 'asdf', 'lkjh'], collected_type_choices=['', 'asdf', 'lkjh'], issue_choices=['', '0', '1', '2'], volume_choices=['', '0', '1', '2'], program_area_choices=['', 'asdf', 'lkjh'])
def collection_public(self, user): return CollectionFactory(creator=user, provider=CollectionProviderFactory(), is_public=True)
def asdf_provider(self): return CollectionProviderFactory(_id='asdf')
def osf_provider(self): return CollectionProviderFactory(_id='osf')
def provider(self): return CollectionProviderFactory()
def collection(self): collection_provider = CollectionProviderFactory() return CollectionFactory(provider=collection_provider)
def collection_provider(self, user_one): cp = CollectionProviderFactory(creator=user_one) cp.allow_submissions = False cp.save() return cp
def provider_one(self): return CollectionProviderFactory(name='Sockarxiv')