mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-02-25 19:17:17 +08:00
Add test client response.redirect_chain (#1124)
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
reveal_type(response.client) # N: Revealed type is "django.test.client.Client"
|
||||
reveal_type(response.context) # N: Revealed type is "Union[django.test.utils.ContextList, builtins.dict[builtins.str, Any]]"
|
||||
reveal_type(response.content) # N: Revealed type is "builtins.bytes"
|
||||
reveal_type(response.redirect_chain) # N: Revealed type is "builtins.list[Tuple[builtins.str, builtins.int]]"
|
||||
response.json()
|
||||
- case: async_client_methods
|
||||
main: |
|
||||
@@ -22,6 +23,7 @@
|
||||
reveal_type(response.client) # N: Revealed type is "django.test.client.AsyncClient"
|
||||
reveal_type(response.context) # N: Revealed type is "Union[django.test.utils.ContextList, builtins.dict[builtins.str, Any]]"
|
||||
reveal_type(response.content) # N: Revealed type is "builtins.bytes"
|
||||
reveal_type(response.redirect_chain) # N: Revealed type is "builtins.list[Tuple[builtins.str, builtins.int]]"
|
||||
response.json()
|
||||
- case: request_factories
|
||||
main: |
|
||||
|
||||
Reference in New Issue
Block a user