diff options
Diffstat (limited to 'ctrack/conftest.py')
-rw-r--r-- | ctrack/conftest.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ctrack/conftest.py b/ctrack/conftest.py index a3ed183..8c40fe4 100644 --- a/ctrack/conftest.py +++ b/ctrack/conftest.py @@ -1,6 +1,7 @@ import pytest from django.test import RequestFactory +from ctrack.organisations.models import AddressType from ctrack.users.models import User from ctrack.organisations.models import Organisation, Address from ctrack.users.tests.factories import ( @@ -26,7 +27,8 @@ def org() -> Organisation: @pytest.fixture def addr() -> Address: - return AddressFactory() + address_type = AddressType.objects.create(descriptor="Random Type") + return AddressFactory(type=address_type) @pytest.fixture |