github stars project celery-rabbit

This commit is contained in:
2021-07-06 16:36:19 +03:00
commit 70bff65fc0
85 changed files with 6716 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
from django.test import Client
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('/')
assert response.status_code == 200
assert main_heading in str(response.content)
def test_hello_page(client: Client, main_heading: str) -> None:
"""This test ensures that hello page works."""
response = client.get(reverse('main:hello'))
assert response.status_code == 200
assert main_heading in str(response.content)