diff options
Diffstat (limited to 'ctrack/users/tests/test_models.py')
-rw-r--r-- | ctrack/users/tests/test_models.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ctrack/users/tests/test_models.py b/ctrack/users/tests/test_models.py index 96bd4b9..504195f 100644 --- a/ctrack/users/tests/test_models.py +++ b/ctrack/users/tests/test_models.py @@ -16,10 +16,11 @@ def test_user_is_person_object(user): assert user -def test_stakeholder_model(person): +def test_stakeholder_model(person, user): """ 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 + user.stakeholder = stakeholder + assert user.stakeholder.person.first_name == "Chinaplate" |