This repository has been archived on 2023-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
python-blog/articles/tests/conftest.py
2020-08-18 07:23:59 +02:00

9 lines
154 B
Python

import pytest
from articles.models import User
@pytest.fixture()
@pytest.mark.django_db
def author():
return User.objects.create_user("gaugendre")