コード例 #1
0
 def preprint_two(self, user, project_two, provider_two, subject_two):
     preprint_two = PreprintFactory(creator=user, project=project_two, filename='howto_reason.txt', provider=provider_two, subjects=[[subject_two._id]])
     preprint_two.created = '2013-12-11 10:09:08.070605+00:00'
     preprint_two.date_published = '2013-12-11 10:09:08.070605+00:00'
     preprint_two.original_publication_date = '2013-12-11 10:09:08.070605+00:00'
     preprint_two.save()
     return preprint_two
コード例 #2
0
 def preprint_three(self, user, project_three, provider_three, subject_one, subject_two):
     preprint_three = PreprintFactory(creator=user, project=project_three, filename='darn_reason.txt', provider=provider_three, subjects=[[subject_one._id], [subject_two._id]])
     preprint_three.created = '2013-12-11 10:09:08.070605+00:00'
     preprint_three.date_published = '2013-12-11 10:09:08.070605+00:00'
     preprint_three.original_publication_date = '2013-12-11 10:09:08.070605+00:00'
     preprint_three.is_published = False
     preprint_three.save()
     return preprint_three
コード例 #3
0
ファイル: test_filters.py プロジェクト: icereval/osf.io
 def preprint_two(self, user, project_two, provider_two, subject_two):
     preprint_two = PreprintFactory(
         creator=user,
         project=project_two,
         filename='howto_reason.txt',
         provider=provider_two,
         subjects=[[subject_two._id]])
     preprint_two.created = '2013-12-11 10:09:08.070605+00:00'
     preprint_two.date_published = '2013-12-11 10:09:08.070605+00:00'
     preprint_two.original_publication_date = '2013-12-11 10:09:08.070605+00:00'
     preprint_two.save()
     return preprint_two
コード例 #4
0
ファイル: test_filters.py プロジェクト: icereval/osf.io
 def preprint_three(
         self, user, project_three, provider_three,
         subject_one, subject_two):
     preprint_three = PreprintFactory(
         creator=user,
         project=project_three,
         filename='darn_reason.txt',
         provider=provider_three,
         subjects=[[subject_one._id], [subject_two._id]])
     preprint_three.created = '2013-12-11 10:09:08.070605+00:00'
     preprint_three.date_published = '2013-12-11 10:09:08.070605+00:00'
     preprint_three.original_publication_date = '2013-12-11 10:09:08.070605+00:00'
     preprint_three.is_published = False
     preprint_three.save()
     return preprint_three