[1.6.x] Fixed #21304 -- Typo in docs/topics/testing/advanced.txt
Thanks joao at silvaneves.org for the report.
Backport of 9704c49d59
from master
This commit is contained in:
parent
b987fb188d
commit
4499dc81e2
|
@ -46,7 +46,7 @@ The following is a simple unit test using the request factory::
|
||||||
# Every test needs access to the request factory.
|
# Every test needs access to the request factory.
|
||||||
self.factory = RequestFactory()
|
self.factory = RequestFactory()
|
||||||
self.user = User.objects.create_user(
|
self.user = User.objects.create_user(
|
||||||
first_name='jacob', email='jacob@…', password='top_secret')
|
username='jacob', email='jacob@…', password='top_secret')
|
||||||
|
|
||||||
def test_details(self):
|
def test_details(self):
|
||||||
# Create an instance of a GET request.
|
# Create an instance of a GET request.
|
||||||
|
|
Loading…
Reference in New Issue