mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-03-03 19:08:15 +03:00
Change style for pytest marker
Update pytest.mark.django_db to be more consistent with rest of the project
This commit is contained in:
parent
ab99cc768f
commit
92bbddc290
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user