Update test_index_view.py
@@ -4,7 +4,7 @@ from django.urls import reverse
def test_main_page(client: Client, main_heading: str) -> None:
"""This test ensures that main page works."""
- response = client.get('/')
+ response = client.get(reverse('index'))
assert response.status_code == 200
assert main_heading in str(response.content)
