From af50341c8c7fffdf30db273ee7feb7cf6d16deb5 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 26 May 2020 19:56:52 +0100 Subject: writing test for user page view --- ctrack/users/tests/test_views.py | 7 +++++++ 1 file changed, 7 insertions(+) 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("/") -- cgit v1.2.3