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