mirror of
				https://github.com/django/django.git
				synced 2025-11-03 21:25:09 +00:00 
			
		
		
		
	Fixed #15876 - Document that test.client.RequestFactory doesn't support sessions or request-altering middleware; thanks slinkp for the suggestion, ShawnMilo for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16128 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		
							parent
							
								
									1d7c2dedcd
								
							
						
					
					
						commit
						2830872d60
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -1060,6 +1060,10 @@ restricted subset of the test client API:
 | 
				
			||||||
      ``follows``. Since this is just a factory for producing
 | 
					      ``follows``. Since this is just a factory for producing
 | 
				
			||||||
      requests, it's up to you to handle the response.
 | 
					      requests, it's up to you to handle the response.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    * It does not support middleware. Session and authentication
 | 
				
			||||||
 | 
					      attributes must be supplied by the test itself if required
 | 
				
			||||||
 | 
					      for the view to function properly.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Example
 | 
					Example
 | 
				
			||||||
~~~~~~~
 | 
					~~~~~~~
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue