Change style for pytest marker

Update pytest.mark.django_db to be more consistent with rest of the project
This commit is contained in:
Bruno Alla 2020-03-17 18:41:27 +00:00
parent ab99cc768f
commit 92bbddc290

View File

@ -4,8 +4,9 @@ from celery.result import EagerResult
from {{ cookiecutter.project_slug }}.users.tasks import get_users_count
from {{ cookiecutter.project_slug }}.users.tests.factories import UserFactory
pytestmark = pytest.mark.django_db
@pytest.mark.django_db
def test_user_count(settings):
"""A basic test to execute the get_users_count Celery task."""
UserFactory.create_batch(3)