commentaries.factories module¶
-
class
commentaries.factories.
BaseCommentaryFactory
[source]¶ Bases:
factory.django.DjangoModelFactory
-
requested_by
= <factory.declarations.SubFactory object>¶
-
vetted
= True¶
-
vetted_by
= <factory.declarations.SubFactory object>¶
-
type
= <factory.declarations.Iterator object>¶
-
acad_field
= <factory.declarations.SubFactory object>¶
-
approaches
= <factory.declarations.Iterator object>¶
-
open_for_commenting
= True¶
-
title
= <factory.faker.Faker object>¶
-
arxiv_identifier
= <factory.declarations.Sequence object>¶
-
pub_DOI
= <factory.declarations.Sequence object>¶
-
arxiv_or_DOI_string
= <factory.declarations.LazyAttribute object>¶
-
pub_date
= <factory.faker.Faker object>¶
-
pub_abstract
= <factory.faker.Faker object>¶
-
classmethod
create
(**kwargs)[source]¶ Create an instance of the associated class, with overriden attrs.
-
add_specialties
= <factory.declarations.PostGeneration object>¶
-
create_urls
= <factory.declarations.PostGeneration object>¶
-
set_journal_data
= <factory.declarations.PostGeneration object>¶
-
-
class
commentaries.factories.
UnvettedCommentaryFactory
[source]¶ Bases:
commentaries.factories.BaseCommentaryFactory
-
vetted
= False¶
-
vetted_by
= None¶
-
-
class
commentaries.factories.
UnpublishedCommentaryFactory
[source]¶ Bases:
commentaries.factories.BaseCommentaryFactory
-
pub_DOI
= ''¶
-
pub_date
= None¶
-
-
class
commentaries.factories.
UnvettedUnpublishedCommentaryFactory
[source]¶ Bases:
commentaries.factories.UnpublishedCommentaryFactory
-
vetted
= False¶
-
vetted_by
= None¶
-