diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-05-25 16:26:56 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-05-25 16:26:56 +0100 |
commit | 37abea2c01a93abe50609268d742308064fef138 (patch) | |
tree | b498de9e3972b0ba5c5248f0390b4a6d4e99baad /ctrack/users/tests | |
parent | 75cad4697874dc1e06f1758dd9915394f7287d63 (diff) |
linked stakeholder to user
Diffstat (limited to 'ctrack/users/tests')
-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" |