aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/users/tests/test_models.py
diff options
context:
space:
mode:
Diffstat (limited to 'ctrack/users/tests/test_models.py')
-rw-r--r--ctrack/users/tests/test_models.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/ctrack/users/tests/test_models.py b/ctrack/users/tests/test_models.py
index 1b33961..d83d8b8 100644
--- a/ctrack/users/tests/test_models.py
+++ b/ctrack/users/tests/test_models.py
@@ -1,5 +1,12 @@
import pytest
+from django.contrib.auth import get_user_model
+from ctrack.organisations.models import Mode, Person, Submode
+from ctrack.organisations.tests.factories import (
+ OrganisationFactory,
+ PersonFactory,
+ RoleFactory,
+)
from ctrack.users.models import User
pytestmark = pytest.mark.django_db
@@ -7,3 +14,9 @@ pytestmark = pytest.mark.django_db
def test_user_get_absolute_url(user: User):
assert user.get_absolute_url() == f"/users/{user.username}/"
+
+
+def test_user_is_person_object(user: User):
+ """User comes from ctrack.conftest.
+ """
+ assert user.is_person is False