Skip to content

Commit 9fd2c79

Browse files
blueyedtony
authored andcommitted
Update fixtures.py
1 parent dd6a4ed commit 9fd2c79

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: pytest_django/fixtures.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def django_user(db, django_user_model, django_username_field):
252252

253253
@pytest.fixture()
254254
def user_client(db, django_user):
255-
"""A Django test client logged in as an admin user."""
255+
"""A Django test client logged in as a normal user."""
256256
from django.test.client import Client
257257

258258
client = Client()
@@ -281,11 +281,11 @@ def rf_unauth():
281281
282282
https://docs.djangoproject.com/en/2.0/topics/testing/advanced/#example
283283
284-
This simiulates 'django.contrib.auth.middleware.AuthenticationMiddleware'
284+
This simiulates ``django.contrib.auth.middleware.AuthenticationMiddleware``.
285285
286-
2. Add's a naive session storage object to request.
286+
2. Adds a naive session storage object to request.
287287
288-
This simiulates 'django.contrib.sessions.middleware.SessionMiddleware',
288+
This simiulates ``django.contrib.sessions.middleware.SessionMiddleware``,
289289
and prevents errors on stuff like SessionWizardView in django-formtools.
290290
"""
291291
from django.test.client import RequestFactory
@@ -323,7 +323,7 @@ def request(self, **request):
323323

324324
@pytest.fixture
325325
def rf_user(django_user):
326-
"""Normal user request facctory.
326+
"""Normal user request factory.
327327
328328
Mimics AuthenticationMiddleware. Also adds a memory-backed session store
329329
to the request object."""

0 commit comments

Comments
 (0)