mirror of
https://github.com/Balshgit/public.git
synced 2026-02-04 10:00:39 +03:00
github stars project celery-rabbit
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user