diff options
-rw-r--r-- | ctrack/core/utils.py | 2 | ||||
-rw-r--r-- | ctrack/organisations/tests/factories.py | 2 | ||||
-rw-r--r-- | ctrack/users/tests/test_views.py | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/ctrack/core/utils.py b/ctrack/core/utils.py index 84b4d8d..bebf176 100644 --- a/ctrack/core/utils.py +++ b/ctrack/core/utils.py @@ -25,12 +25,12 @@ from ctrack.organisations.tests.factories import ( OrganisationFactory, PersonFactory, RoleFactory, - UserFactory, ) from ctrack.register.tests.factories import ( EngagementEventFactory, EngagementTypeFactory, ) +from ctrack.users.tests.factories import UserFactory fnames = [ "Clock Pylon Systems", diff --git a/ctrack/organisations/tests/factories.py b/ctrack/organisations/tests/factories.py index 4f4928c..ba2655e 100644 --- a/ctrack/organisations/tests/factories.py +++ b/ctrack/organisations/tests/factories.py @@ -33,6 +33,8 @@ def _random_submode(): class UserFactory(DjangoModelFactory): + # Better to create this using example in ctrack.users.tests.factories. + # Handles password generation correctly. class Meta: model = User diff --git a/ctrack/users/tests/test_views.py b/ctrack/users/tests/test_views.py index f8e7e78..73d694c 100644 --- a/ctrack/users/tests/test_views.py +++ b/ctrack/users/tests/test_views.py @@ -81,6 +81,4 @@ def test_profile_view_contains_organisation_information(person): == org_name ) assert response.context_data["user"].get_organisation_name() == org_name - - -# assert response.context_data["user"].stakeholder.person.first_name == "Chinaplate" + assert response.context_data["user"].stakeholder.person.first_name == "Chinaplate" |