diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-05-23 21:16:46 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-05-23 21:16:46 +0100 |
commit | 3eb799b67c9d6cc7905c9e5ce7210a53ed7f2b66 (patch) | |
tree | 30ff9c29a08fa3de8d4a4141058ac43960b0a693 /ctrack/organisations/tests/test_views.py | |
parent | 340ae8d6fdbacb370777560b68674406eb554a18 (diff) |
fixed a test and some cleaning
Diffstat (limited to 'ctrack/organisations/tests/test_views.py')
-rw-r--r-- | ctrack/organisations/tests/test_views.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ctrack/organisations/tests/test_views.py b/ctrack/organisations/tests/test_views.py index 02d066a..2111410 100644 --- a/ctrack/organisations/tests/test_views.py +++ b/ctrack/organisations/tests/test_views.py @@ -2,13 +2,20 @@ import pytest from django.contrib.auth import get_user_model from django.test import RequestFactory +from ctrack.organisations.tests.factories import OrganisationFactory + from ..views import OrganisationListView pytestmark = pytest.mark.django_db # https://docs.djangoproject.com/en/3.0/topics/testing/advanced/#example -def test_organisation_list_view(full_db_fixture): +def test_organisation_list_view(): + + OrganisationFactory.create() + OrganisationFactory.create() + OrganisationFactory.create() + factory = RequestFactory() user = get_user_model().objects.create_user( username="testy", email="testy@test.com", password="test1020" |