aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/users
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-01-20 19:47:15 +0000
committerMatthew Lemon <lemon@matthewlemon.com>2020-01-20 19:47:15 +0000
commitb56df3b59558e790b1e9a7a4aab16fa4c798110c (patch)
treef0b2e5d192a95e1634df96a89f6c3b4d7dc46334 /ctrack/users
parent9ebc666f819897aac04e9bc529a39fb40ee7abfb (diff)
first passing test!
Diffstat (limited to 'ctrack/users')
-rw-r--r--ctrack/users/tests/factories.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/ctrack/users/tests/factories.py b/ctrack/users/tests/factories.py
index b537136..d4b9544 100644
--- a/ctrack/users/tests/factories.py
+++ b/ctrack/users/tests/factories.py
@@ -1,9 +1,18 @@
from typing import Any, Sequence
from django.contrib.auth import get_user_model
+from ctrack.organisations.models import Organisation
from factory import DjangoModelFactory, Faker, post_generation
+class OrganisationFactory(DjangoModelFactory):
+
+ name = Faker("name")
+
+ class Meta:
+ model = Organisation
+
+
class UserFactory(DjangoModelFactory):
username = Faker("user_name")