From 1378b6b434186839def61bf9517c55b085c03ead Mon Sep 17 00:00:00 2001
From: Jorran de Wit <jorrandewit@outlook.com>
Date: Wed, 14 Mar 2018 15:50:26 +0100
Subject: [PATCH] Update theses factories

---
 theses/factories.py | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/theses/factories.py b/theses/factories.py
index c5461a1a6..9a54abf5a 100644
--- a/theses/factories.py
+++ b/theses/factories.py
@@ -1,7 +1,5 @@
 import factory
 
-from django.utils import timezone
-
 from common.helpers.factories import FormFactory
 from journals.constants import SCIPOST_JOURNALS_DOMAINS
 from scipost.constants import SCIPOST_DISCIPLINES, SCIPOST_SUBJECT_AREAS
@@ -11,10 +9,6 @@ from .models import ThesisLink
 from .forms import VetThesisLinkForm
 from .constants import THESIS_TYPES
 
-from faker import Faker
-
-timezone.now()
-
 
 class ThesisLinkFactory(factory.django.DjangoModelFactory):
     class Meta:
@@ -31,7 +25,7 @@ class ThesisLinkFactory(factory.django.DjangoModelFactory):
     supervisor = factory.Faker('name')
     institution = factory.Faker('company')
     defense_date = factory.Faker('date')
-    abstract = factory.lazy_attribute(lambda x: Faker().paragraph())
+    abstract = factory.Faker('paragraph')
 
 
 class VettedThesisLinkFactory(ThesisLinkFactory):
-- 
GitLab