File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -140,13 +140,15 @@ Example
140
140
``async_rf `` - ``AsyncRequestFactory ``
141
141
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
142
142
143
- An instance of a `django.test.AsyncRequestFactory `
143
+ An instance of a `django.test.AsyncRequestFactory `_.
144
144
145
- .. _django.test.AsyncRequestFactory : https://docs.djangoproject.com/en/3.1 /topics/testing/advanced/#asyncrequestfactory
145
+ .. _django.test.AsyncRequestFactory : https://docs.djangoproject.com/en/stable /topics/testing/advanced/#asyncrequestfactory
146
146
147
147
Example
148
148
"""""""
149
149
150
+ This example uses `pytest-asyncio <https://github.com/pytest-dev/pytest-asyncio >`_.
151
+
150
152
::
151
153
152
154
from myapp.views import my_view
@@ -195,13 +197,15 @@ To use `client` as an authenticated standard user, call its
195
197
``async_client `` - ``django.test.AsyncClient ``
196
198
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
197
199
198
- An instance of a `django.test.AsyncClient `
200
+ An instance of a `django.test.AsyncClient `_.
199
201
200
- .. _django.test.AsyncClient : https://docs.djangoproject.com/en/stable/topics/testing/tools/#the-test-client
202
+ .. _django.test.AsyncClient : https://docs.djangoproject.com/en/stable/topics/testing/tools/#testing-asynchronous-code
201
203
202
204
Example
203
205
"""""""
204
206
207
+ This example uses `pytest-asyncio <https://github.com/pytest-dev/pytest-asyncio >`_.
208
+
205
209
::
206
210
207
211
@pytest.mark.asyncio
You can’t perform that action at this time.
0 commit comments