diff --git a/apps/problems/tests_problems.py b/apps/problems/tests_problems.py index fbd1b27..dde80bd 100644 --- a/apps/problems/tests_problems.py +++ b/apps/problems/tests_problems.py @@ -121,7 +121,7 @@ def test_detail_url_resolves_to_detail_view(self) -> None: resolver = resolve(url) - self.assertEqual(resolver.url_name, DetailView) + self.assertEqual(resolver.view_name, "problems:detail") def test_detail_url_reverse(self) -> None: expected_url = "/problems/1/"