chore: add pytest configuration for Django tests
This commit is contained in:
parent
b19c29e24f
commit
4cee7e9569
|
|
@ -0,0 +1,7 @@
|
|||
import pytest
|
||||
from django.test import Client
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def client():
|
||||
return Client()
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
[pytest]
|
||||
DJANGO_SETTINGS_MODULE = config.settings.development
|
||||
python_files = tests/test_*.py
|
||||
python_classes = Test*
|
||||
python_functions = test_*
|
||||
|
|
@ -8,3 +8,5 @@ redis==5.0.1
|
|||
django-redis==5.4.0
|
||||
Pillow==10.3.0
|
||||
python-decouple==3.8
|
||||
pytest==8.1.1
|
||||
pytest-django==4.8.0
|
||||
|
|
|
|||
Loading…
Reference in New Issue