diff options
Diffstat (limited to 'ctrack/users/tests/test_models.py')
-rw-r--r-- | ctrack/users/tests/test_models.py | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/ctrack/users/tests/test_models.py b/ctrack/users/tests/test_models.py index c429b9c..2d45cca 100644 --- a/ctrack/users/tests/test_models.py +++ b/ctrack/users/tests/test_models.py @@ -1,16 +1,25 @@ import pytest -from ctrack.users.models import User +from ctrack.users.stakeholder import Stakeholder pytestmark = pytest.mark.django_db -def test_user_get_absolute_url(user: User): +def test_user_get_absolute_url(user): assert user.get_absolute_url() == f"/users/{user.username}/" -def test_user_is_person_object(user: User): +def test_user_is_person_object(user): """User comes from ctrack.conftest. """ assert user + + +def test_stakeholder_model(person): + """ + A stakeholder is someone who is part of the regime but also has user access to the + the system. + """ + stakeholder = Stakeholder(person=person) + assert stakeholder |