diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-18 20:56:22 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-18 20:56:22 +0100 |
commit | eebcfa91fb68bc9d552fea4fba74786c99c066aa (patch) | |
tree | 2121c391b9d900bcb185d9b43a0af2ca1e25c54a /ctrack/users/tests/test_views.py | |
parent | 95ce6e5712e2f325e21f091b529bd961873c8626 (diff) |
fixed failing unit tests
Diffstat (limited to '')
-rw-r--r-- | ctrack/users/tests/test_views.py | 4 |
1 files changed, 1 insertions, 3 deletions
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: |