diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-02-21 15:59:46 +0000 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-02-21 15:59:46 +0000 |
commit | 46107b7539211adbe71ab25d319b5c1f744fe4c4 (patch) | |
tree | c61a4a8c54b81df5f1b964ef3abade6d4c482a57 /ctrack/conftest.py | |
parent | ef984ebeac44dea908ca773e5aefeda4baaed431 (diff) |
Clean up and fixed failing test after factory change
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 |