aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/organisations/tests
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-02-21 15:59:46 +0000
committerMatthew Lemon <lemon@matthewlemon.com>2020-02-21 15:59:46 +0000
commit46107b7539211adbe71ab25d319b5c1f744fe4c4 (patch)
treec61a4a8c54b81df5f1b964ef3abade6d4c482a57 /ctrack/organisations/tests
parentef984ebeac44dea908ca773e5aefeda4baaed431 (diff)
Clean up and fixed failing test after factory change
Diffstat (limited to 'ctrack/organisations/tests')
-rw-r--r--ctrack/organisations/tests/factories.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/ctrack/organisations/tests/factories.py b/ctrack/organisations/tests/factories.py
index b082290..fd8ad88 100644
--- a/ctrack/organisations/tests/factories.py
+++ b/ctrack/organisations/tests/factories.py
@@ -46,7 +46,6 @@ class OrganisationFactory(DjangoModelFactory):
name = Faker("company")
slug = Faker("lexify", text="????", letters="abcdsg")
-# submode = SubFactory(SubModeFactory)
designation_type = 1
registered_company_name = Faker("company")
registered_company_number = Faker("numerify", text="######")
@@ -96,7 +95,7 @@ class PersonFactory(DjangoModelFactory):
landline = Faker("phone_number", locale="en_GB")
date_updated = factory.LazyFunction(datetime.now)
updated_by = SubFactory(UserFactory)
- clearance = factory.LazyFunction(lambda: random.randint(1,6))
+ clearance = factory.LazyFunction(lambda: random.randint(1, 6))
clearance_sponsor = Faker("name", locale="en_GB")
clearance_start_date = factory.LazyFunction(datetime.now)
clearance_last_checked = factory.LazyFunction(datetime.now)
@@ -108,7 +107,7 @@ class PersonFactory(DjangoModelFactory):
class AddressFactory(DjangoModelFactory):
- type = SubFactory("ctrack.organisations.tests.factories.AddressTypeFactory")
+ # type = # manually entered
organisation = SubFactory(OrganisationFactory)
line1 = Faker("building_number", locale="en_GB")
line2 = Faker("street_name", locale="en_GB")
@@ -121,4 +120,3 @@ class AddressFactory(DjangoModelFactory):
class Meta:
model = Address
-