submissions.factories module

class submissions.factories.SubmissionFactory[source]

Bases: factory.django.DjangoModelFactory

Generate random basic Submission instances.

author_list = <factory.faker.Faker object>
submitted_by = <factory.declarations.Iterator object>
submitted_to = <factory.declarations.Iterator object>
title = <factory.faker.Faker object>
list_of_changes = <factory.faker.Faker object>
acad_field = <factory.declarations.Iterator object>
approaches = <factory.declarations.Iterator object>
abstract = <factory.faker.Faker object>
author_comments = <factory.faker.Faker object>
remarks_for_editors = <factory.faker.Faker object>
thread_hash = <factory.faker.Faker object>
is_current = True
submission_date = <factory.faker.Faker object>
latest_activity = <factory.declarations.LazyAttribute object>
preprint = <factory.declarations.SubFactory object>
visible_public = True
visible_pool = False
classmethod create(**kwargs)[source]

Create an instance of the associated class, with overriden attrs.

add_specialties = <factory.declarations.PostGeneration object>
contributors = <factory.declarations.PostGeneration object>
class submissions.factories.UnassignedSubmissionFactory[source]

Bases: submissions.factories.SubmissionFactory

A new incoming Submission without any EIC assigned.

status = 'unassigned'
visible_public = False
visible_pool = True
class submissions.factories.EICassignedSubmissionFactory[source]

Bases: submissions.factories.SubmissionFactory

A Submission with an EIC assigned, visible in the pool and refereeing in process.

status = 'assigned'
open_for_commenting = True
open_for_reporting = True
visible_public = True
visible_pool = True
editor_in_charge = <factory.declarations.Iterator object>
eic_assignment = <factory.declarations.PostGeneration object>
referee_invites = <factory.declarations.PostGeneration object>
comments = <factory.declarations.PostGeneration object>
eic_recommendation = <factory.declarations.PostGeneration object>
class submissions.factories.ResubmittedSubmissionFactory[source]

Bases: submissions.factories.EICassignedSubmissionFactory

A Submission that has a newer Submission version in the database with a successive version number.

status = 'resubmitted'
open_for_commenting = False
open_for_reporting = False
is_current = False
visible_public = True
visible_pool = False
successive_submission = <factory.declarations.PostGeneration object>
gather_successor_data = <factory.declarations.PostGeneration object>
referee_invites = <factory.declarations.PostGeneration object>
class submissions.factories.ResubmissionFactory[source]

Bases: submissions.factories.EICassignedSubmissionFactory

This Submission is a newer version of a Submission which is already known by the SciPost database.

status = 'incoming'
open_for_commenting = True
open_for_reporting = True
visible_public = False
visible_pool = True
previous_submission = <factory.declarations.PostGeneration object>
gather_predecessor_data = <factory.declarations.PostGeneration object>
referee_invites = <factory.declarations.PostGeneration object>
class submissions.factories.PublishedSubmissionFactory[source]

Bases: submissions.factories.EICassignedSubmissionFactory

status = 'published'
open_for_commenting = False
open_for_reporting = False
visible_public = True
visible_pool = False
generate_publication = <factory.declarations.PostGeneration object>
eic_assignment = <factory.declarations.PostGeneration object>
referee_invites = <factory.declarations.PostGeneration object>
class submissions.factories.ReportFactory[source]

Bases: factory.django.DjangoModelFactory

status = <factory.declarations.Iterator object>
submission = <factory.declarations.SubFactory object>
report_nr = <factory.declarations.LazyAttribute object>
date_submitted = <factory.faker.Faker object>
vetted_by = <factory.declarations.Iterator object>
author = <factory.declarations.Iterator object>
strengths = <factory.faker.Faker object>
weaknesses = <factory.faker.Faker object>
report = <factory.faker.Faker object>
requested_changes = <factory.faker.Faker object>
qualification = <factory.declarations.Iterator object>
validity = <factory.declarations.Iterator object>
significance = <factory.declarations.Iterator object>
originality = <factory.declarations.Iterator object>
clarity = <factory.declarations.Iterator object>
formatting = <factory.declarations.Iterator object>
grammar = <factory.declarations.Iterator object>
recommendation = <factory.declarations.Iterator object>
remarks_for_editors = <factory.faker.Faker object>
flagged = <factory.faker.Faker object>
anonymous = <factory.faker.Faker object>
classmethod create(**kwargs)[source]

Create an instance of the associated class, with overriden attrs.

class submissions.factories.DraftReportFactory[source]

Bases: submissions.factories.ReportFactory

status = 'draft'
vetted_by = None
class submissions.factories.UnVettedReportFactory[source]

Bases: submissions.factories.ReportFactory

status = 'unvetted'
vetted_by = None
class submissions.factories.VettedReportFactory[source]

Bases: submissions.factories.ReportFactory

status = 'vetted'
needs_doi = True
doideposit_needs_updating = <factory.faker.Faker object>
doi_label = <factory.declarations.LazyAttribute object>
pdf_report = <factory.faker.Faker object>
class submissions.factories.RefereeInvitationFactory[source]

Bases: factory.django.DjangoModelFactory

submission = <factory.declarations.SubFactory object>
referee = <factory.declarations.LazyAttribute object>
title = <factory.declarations.LazyAttribute object>
first_name = <factory.declarations.LazyAttribute object>
last_name = <factory.declarations.LazyAttribute object>
email_address = <factory.declarations.LazyAttribute object>
date_invited = <factory.declarations.LazyAttribute object>
nr_reminders = <factory.declarations.LazyAttribute object>
date_last_reminded = <factory.declarations.LazyAttribute object>
invitation_key = <factory.faker.Faker object>
invited_by = <factory.declarations.LazyAttribute object>
class submissions.factories.AcceptedRefereeInvitationFactory[source]

Bases: submissions.factories.RefereeInvitationFactory

accepted = True
date_responded = <factory.declarations.LazyAttribute object>
report = <factory.declarations.PostGeneration object>
class submissions.factories.FulfilledRefereeInvitationFactory[source]

Bases: submissions.factories.AcceptedRefereeInvitationFactory

fulfilled = True
date_responded = <factory.declarations.LazyAttribute object>
report = <factory.declarations.PostGeneration object>
class submissions.factories.CancelledRefereeInvitationFactory[source]

Bases: submissions.factories.AcceptedRefereeInvitationFactory

fulfilled = False
cancelled = True
date_responded = <factory.declarations.LazyAttribute object>
class submissions.factories.EICRecommendationFactory[source]

Bases: factory.django.DjangoModelFactory

submission = <factory.declarations.Iterator object>
date_submitted = <factory.declarations.LazyAttribute object>
remarks_for_authors = <factory.faker.Faker object>
requested_changes = <factory.faker.Faker object>
remarks_for_editorial_college = <factory.faker.Faker object>
recommendation = <factory.declarations.Iterator object>
version = 1
active = True
class submissions.factories.EditorialAssignmentFactory[source]

Bases: factory.django.DjangoModelFactory

An EditorialAssignmentFactory should always have a submission explicitly assigned. This will mostly be done using the post_generation hook in any SubmissionFactory.

submission = None
to = <factory.declarations.Iterator object>
status = <factory.declarations.Iterator object>
date_created = <factory.declarations.LazyAttribute object>
date_answered = <factory.declarations.LazyAttribute object>