Skip to content

Commit

Permalink
Update fixtures.py
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Jan 18, 2018
1 parent 5fccb31 commit 722feac
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pytest_django/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def django_user(db, django_user_model, django_username_field):

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

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

@pytest.fixture
def rf_user(django_user):
"""Normal user request facctory.
"""Normal user request factory.
Mimics AuthenticationMiddleware. Also adds a memory-backed session store
to the request object."""
Expand Down

0 comments on commit 722feac

Please sign in to comment.