diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2020-10-18 15:37:21 +0100 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2020-10-18 15:37:21 +0100 |
commit | d6a3d976e0a7bd2bde93a5ea5543e9e68922520d (patch) | |
tree | 3d02114cb0d676a870959288f2281e61b541150b /ctrack/organisations/tests/factories.py | |
parent | d25f73ff06f3daa428e0e87f42b83d071a31cc02 (diff) |
fixed some tests
Diffstat (limited to '')
-rw-r--r-- | ctrack/organisations/tests/factories.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ctrack/organisations/tests/factories.py b/ctrack/organisations/tests/factories.py index c8340b9..330ad79 100644 --- a/ctrack/organisations/tests/factories.py +++ b/ctrack/organisations/tests/factories.py @@ -7,6 +7,7 @@ from factory import Faker, SubFactory, post_generation from factory.django import DjangoModelFactory from ctrack.organisations.models import Address, Organisation, Person, Role +from ctrack.register.models import SingleDateTimeEvent from ctrack.users.tests.factories import UserFactory User = get_user_model() @@ -119,3 +120,15 @@ class AddressFactory(DjangoModelFactory): class Meta: model = Address + + +class SingleDateTimeEventFactory(DjangoModelFactory): + type_descriptor = None # must pass this in + short_description = "Nothing short description" + datetime = "2020-02-10 10:00" + comments = "Nothing comments" + location = "Gark's basin" + user = SubFactory(UserFactory) + + class Meta: + model = SingleDateTimeEvent |