aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ctrack/register/tests/test_views.py2
-rw-r--r--ctrack/users/tests/test_views.py4
2 files changed, 2 insertions, 4 deletions
diff --git a/ctrack/register/tests/test_views.py b/ctrack/register/tests/test_views.py
index 30cc0d5..306cec5 100644
--- a/ctrack/register/tests/test_views.py
+++ b/ctrack/register/tests/test_views.py
@@ -122,7 +122,7 @@ class TestSingleDateTimeEvent:
response = client.get(url)
html = response.content.decode("utf-8")
assert response.status_code == 200
- test_case.assertInHTML("Create a new simple event involving {org.name}", html)
+ test_case.assertInHTML(f"Create a new simple event involving {org.name}", html)
def test_org_passed_as_kwarg(self, user, org, request_factory):
slug = org.slug
diff --git a/ctrack/users/tests/test_views.py b/ctrack/users/tests/test_views.py
index 5d158fe..525e261 100644
--- a/ctrack/users/tests/test_views.py
+++ b/ctrack/users/tests/test_views.py
@@ -16,12 +16,11 @@ test_case = TestCase("run")
class TestUserProfilePage:
def test_their_full_name_in_h3(self, user: User, client):
- full_name = user.name
client.force_login(user)
response = client.get(reverse("users:detail", args=[user.username]))
assert response.status_code == 200
html = response.content.decode("utf-8")
- test_string = f"<h3>{full_name}</h3>"
+ test_string = f'<h1 class="display-4">{user.name}</h1>'
assert test_string in html
def test_view_has_all_events_related_to_user(self, user, client):
@@ -43,7 +42,6 @@ class TestUserProfilePage:
test_case.assertInHTML("Comments on important event", html)
-
class TestUserUpdateView:
"""
TODO: