From b56df3b59558e790b1e9a7a4aab16fa4c798110c Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 20 Jan 2020 19:47:15 +0000 Subject: first passing test! --- ctrack/users/tests/factories.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ctrack/users/tests/factories.py') 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") -- cgit v1.2.3