diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-05-26 19:56:52 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-05-26 19:56:52 +0100 |
commit | af50341c8c7fffdf30db273ee7feb7cf6d16deb5 (patch) | |
tree | 3284a8d4ae8b4250a10f79e8551a7487008d618c /ctrack/users | |
parent | 597926cde0980b69280f0064d9a8fac6e5a00da9 (diff) |
writing test for user page view
Diffstat (limited to 'ctrack/users')
-rw-r--r-- | ctrack/users/tests/test_views.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ctrack/users/tests/test_views.py b/ctrack/users/tests/test_views.py index e3aed6c..2aa463e 100644 --- a/ctrack/users/tests/test_views.py +++ b/ctrack/users/tests/test_views.py @@ -1,6 +1,7 @@ import pytest from django.contrib.auth import get_user_model from django.test import RequestFactory +from django.urls import resolve from ctrack.organisations.models import Stakeholder from ctrack.users.models import User @@ -79,3 +80,9 @@ def test_profile_view_contains_organisation_information(person, user): ) assert response.context_data["user"].get_organisation_name() == org_name assert response.context_data["user"].stakeholder.person.first_name == "Toss" + + +def test_user_page_has_h1_with_their_name_in_it(person, user): + """Test""" + # TODO - write this test; it will make part of func test pass. + found = resolve("/") |