SciPost Code Repository
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SciPost
Manage
Activity
Members
Labels
Plan
Issues
118
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SciPost
SciPost
Commits
1378b6b4
Commit
1378b6b4
authored
7 years ago
by
Jorran de Wit
Browse files
Options
Downloads
Patches
Plain Diff
Update theses factories
parent
a3a7c54b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theses/factories.py
+1
-7
1 addition, 7 deletions
theses/factories.py
with
1 addition
and
7 deletions
theses/factories.py
+
1
−
7
View file @
1378b6b4
import
factory
import
factory
from
django.utils
import
timezone
from
common.helpers.factories
import
FormFactory
from
common.helpers.factories
import
FormFactory
from
journals.constants
import
SCIPOST_JOURNALS_DOMAINS
from
journals.constants
import
SCIPOST_JOURNALS_DOMAINS
from
scipost.constants
import
SCIPOST_DISCIPLINES
,
SCIPOST_SUBJECT_AREAS
from
scipost.constants
import
SCIPOST_DISCIPLINES
,
SCIPOST_SUBJECT_AREAS
...
@@ -11,10 +9,6 @@ from .models import ThesisLink
...
@@ -11,10 +9,6 @@ from .models import ThesisLink
from
.forms
import
VetThesisLinkForm
from
.forms
import
VetThesisLinkForm
from
.constants
import
THESIS_TYPES
from
.constants
import
THESIS_TYPES
from
faker
import
Faker
timezone
.
now
()
class
ThesisLinkFactory
(
factory
.
django
.
DjangoModelFactory
):
class
ThesisLinkFactory
(
factory
.
django
.
DjangoModelFactory
):
class
Meta
:
class
Meta
:
...
@@ -31,7 +25,7 @@ class ThesisLinkFactory(factory.django.DjangoModelFactory):
...
@@ -31,7 +25,7 @@ class ThesisLinkFactory(factory.django.DjangoModelFactory):
supervisor
=
factory
.
Faker
(
'
name
'
)
supervisor
=
factory
.
Faker
(
'
name
'
)
institution
=
factory
.
Faker
(
'
company
'
)
institution
=
factory
.
Faker
(
'
company
'
)
defense_date
=
factory
.
Faker
(
'
date
'
)
defense_date
=
factory
.
Faker
(
'
date
'
)
abstract
=
factory
.
lazy_attribute
(
lambda
x
:
Faker
(
).
paragraph
()
)
abstract
=
factory
.
Faker
(
'
paragraph
'
)
class
VettedThesisLinkFactory
(
ThesisLinkFactory
):
class
VettedThesisLinkFactory
(
ThesisLinkFactory
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment