Пример #1
0
 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 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
Пример #3
0
 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'])
Пример #4
0
 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()
Пример #8
0
 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
Пример #10
0
 def collection_provider(self, user_one):
     cp = CollectionProviderFactory(creator=user_one)
     cp.allow_submissions = False
     cp.save()
     return cp
Пример #11
0
 def provider_one(self):
     return CollectionProviderFactory(name='Sockarxiv')