diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-01-20 20:54:42 +0000 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-01-20 20:54:42 +0000 |
commit | 793d16fbc7d531c575601a64be91f7ac8250aab0 (patch) | |
tree | 06af18fa90f13702daad49cecc4f902241c06d93 /ctrack/conftest.py | |
parent | b3ba5d7a9758a0e167409757dbe46dfc75bade5c (diff) |
partial way through playing with Faker
Diffstat (limited to 'ctrack/conftest.py')
-rw-r--r-- | ctrack/conftest.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ctrack/conftest.py b/ctrack/conftest.py index 36254cd..2efd243 100644 --- a/ctrack/conftest.py +++ b/ctrack/conftest.py @@ -2,8 +2,8 @@ import pytest from django.test import RequestFactory from ctrack.users.models import User -from ctrack.organisations.models import Organisation -from ctrack.users.tests.factories import UserFactory, OrganisationFactory +from ctrack.organisations.models import Organisation, Address +from ctrack.users.tests.factories import UserFactory, OrganisationFactory, AddressFactory @pytest.fixture(autouse=True) @@ -20,6 +20,9 @@ def user() -> User: def org() -> Organisation: return OrganisationFactory() +@pytest.fixture +def addr() -> Address: + return AddressFactory() @pytest.fixture def request_factory() -> RequestFactory: |