aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/users/tests/test_views.py
diff options
context:
space:
mode:
Diffstat (limited to 'ctrack/users/tests/test_views.py')
-rw-r--r--ctrack/users/tests/test_views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ctrack/users/tests/test_views.py b/ctrack/users/tests/test_views.py
index ca2d0c2..f8e7e78 100644
--- a/ctrack/users/tests/test_views.py
+++ b/ctrack/users/tests/test_views.py
@@ -67,7 +67,9 @@ def test_profile_view_contains_organisation_information(person):
# Django Advanced Testing Topics
request.user = user
+ # We pass 'username' rather than 'slug' here because we are setting 'slug_url_kwarg' in our CBV.
response = UserDetailView.as_view()(request, username=user.username)
+
assert response.status_code == 200
assert response.context_data["user"].username == "testy"
assert response.context_data["user"].is_stakeholder() is True