Skip to content

Commit 4464ce7

Browse files
authored
Link added for Test Case Classes and corrected stable link for Refresh from DB (#8381)
Link added for Test Case Classes and corrected stable link for Refresh from DB.
1 parent a4334a8 commit 4464ce7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/api-guide/testing.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ similar way as with `RequestsClient`.
299299

300300
# API Test cases
301301

302-
REST framework includes the following test case classes, that mirror the existing Django test case classes, but use `APIClient` instead of Django's default `Client`.
302+
REST framework includes the following test case classes, that mirror the existing [Django's test case classes][provided_test_case_classes], but use `APIClient` instead of Django's default `Client`.
303303

304304
* `APISimpleTestCase`
305305
* `APITransactionTestCase`
@@ -413,5 +413,6 @@ For example, to add support for using `format='html'` in test requests, you migh
413413
[client]: https://docs.djangoproject.com/en/stable/topics/testing/tools/#the-test-client
414414
[requestfactory]: https://docs.djangoproject.com/en/stable/topics/testing/advanced/#django.test.client.RequestFactory
415415
[configuration]: #configuration
416-
[refresh_from_db_docs]: https://docs.djangoproject.com/en/1.11/ref/models/instances/#django.db.models.Model.refresh_from_db
416+
[refresh_from_db_docs]: https://docs.djangoproject.com/en/stable/ref/models/instances/#django.db.models.Model.refresh_from_db
417417
[session_objects]: https://requests.readthedocs.io/en/master/user/advanced/#session-objects
418+
[provided_test_case_classes]: https://docs.djangoproject.com/en/stable/topics/testing/tools/#provided-test-case-classes

0 commit comments

Comments
 (0)