Change style for pytest marker
Update pytest.mark.django_db to be more consistent with rest of the project
@@ -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)
