aboutsummaryrefslogtreecommitdiffstats
path: root/docs/api-guide/testing.md
diff options
context:
space:
mode:
authorJosé Padilla2014-10-31 09:04:39 -0400
committerDougal Matthews2014-11-25 12:44:11 +0000
commit16d442dda3ee9d4ff40d067d76706959aac4c6a3 (patch)
tree2f180dd2ba39e9bed2dea0bbadc85815a043b471 /docs/api-guide/testing.md
parentcbb6799d2dc2d87e58e67e1044075319262a674b (diff)
downloaddjango-rest-framework-16d442dda3ee9d4ff40d067d76706959aac4c6a3.tar.bz2
Use MkDocs meta.source to render source code links
Diffstat (limited to 'docs/api-guide/testing.md')
-rw-r--r--docs/api-guide/testing.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/api-guide/testing.md b/docs/api-guide/testing.md
index 72c33961..d059fdab 100644
--- a/docs/api-guide/testing.md
+++ b/docs/api-guide/testing.md
@@ -1,4 +1,4 @@
-<a class="github" href="test.py"></a>
+source: test.py
# Testing
@@ -170,7 +170,7 @@ This can be a useful shortcut if you're testing the API but don't want to have t
To unauthenticate subsequent requests, call `force_authenticate` setting the user and/or token to `None`.
- client.force_authenticate(user=None)
+ client.force_authenticate(user=None)
## CSRF validation
@@ -197,7 +197,7 @@ You can use any of REST framework's test case classes as you would for the regul
from django.core.urlresolvers import reverse
from rest_framework import status
- from rest_framework.test import APITestCase
+ from rest_framework.test import APITestCase
class AccountTests(APITestCase):
def test_create_account(self):