Add working prototype

This commit is contained in:
2024-06-22 05:33:42 +02:00
parent 67dc4639a0
commit e8f7e55135
60 changed files with 982 additions and 19571 deletions

0
core/tests/__init__.py Normal file
View File

22
core/tests/test_views.py Normal file
View File

@ -0,0 +1,22 @@
from typing import TYPE_CHECKING
import pytest
from django.test import Client, RequestFactory
from django.urls import reverse
if TYPE_CHECKING:
from django.http import HttpResponse
@pytest.fixture()
def factory() -> RequestFactory:
"""Factory for creating requests."""
return RequestFactory()
@pytest.mark.django_db()
def test_index_view(client: Client) -> None:
"""Test index view."""
url: str = reverse(viewname="core:index")
response: HttpResponse = client.get(url)
assert response.status_code == 200