scipost.factories module

class scipost.factories.ContributorFactory[source]

Bases: factory.django.DjangoModelFactory

profile = <factory.declarations.SubFactory object>
user = <factory.declarations.SubFactory object>
invitation_key = <factory.faker.Faker object>
activation_key = <factory.faker.Faker object>
key_expires = <factory.faker.Faker object>
status = 'normal'
address = <factory.faker.Faker object>
class scipost.factories.VettingEditorFactory[source]

Bases: scipost.factories.ContributorFactory

add_to_vetting_editors = <factory.declarations.PostGeneration object>
class scipost.factories.UserFactory[source]

Bases: factory.django.DjangoModelFactory

username = <factory.faker.Faker object>
password = <factory.declarations.PostGenerationMethodCall object>
email = <factory.faker.Faker object>
first_name = <factory.faker.Faker object>
last_name = <factory.faker.Faker object>
is_active = True
contrib = <factory.declarations.RelatedFactory object>
groups = <factory.declarations.PostGeneration object>
class scipost.factories.TOTPDeviceFactory[source]

Bases: factory.django.DjangoModelFactory

user = <factory.declarations.SubFactory object>
name = <factory.faker.Faker object>
token = <factory.faker.Faker object>
class scipost.factories.SubmissionRemarkFactory[source]

Bases: factory.django.DjangoModelFactory

contributor = <factory.declarations.Iterator object>
submission = <factory.declarations.Iterator object>
date = <factory.faker.Faker object>
remark = <factory.faker.Faker object>