diff options
Diffstat (limited to 'ctrack/organisations/tests/test_models.py')
-rw-r--r-- | ctrack/organisations/tests/test_models.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ctrack/organisations/tests/test_models.py b/ctrack/organisations/tests/test_models.py index 946fda5..cb3b9af 100644 --- a/ctrack/organisations/tests/test_models.py +++ b/ctrack/organisations/tests/test_models.py @@ -1,7 +1,7 @@ import pytest from slugify import slugify -from ..models import Organisation +from ..models import Organisation, Address pytestmark = pytest.mark.django_db @@ -30,3 +30,8 @@ def test_update_organisation(org: Organisation): org.name = "Tonkers Ltd" org.save() assert org.name == "Tonkers Ltd" + + +def test_new_address(addr: Address): + # The address "has" an organisation + assert addr.organisation.name |