mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[4.1.x] Fixed #33026 -- Mentioned RequestFactory in testing tools docs.
Backport of 468d061097 from main
			
			
This commit is contained in:
		
				
					committed by
					
						 Mariusz Felisiak
						Mariusz Felisiak
					
				
			
			
				
	
			
			
			
						parent
						
							b826b38847
						
					
				
				
					commit
					7607fc8990
				
			| @@ -34,12 +34,15 @@ short: | ||||
| * Use Django's test client to establish that the correct template is being | ||||
|   rendered and that the template is passed the correct context data. | ||||
|  | ||||
| * Use :class:`~django.test.RequestFactory` to test view functions directly, | ||||
|   bypassing the routing and middleware layers. | ||||
|  | ||||
| * Use in-browser frameworks like Selenium_ to test *rendered* HTML and the | ||||
|   *behavior* of web pages, namely JavaScript functionality. Django also | ||||
|   provides special support for those frameworks; see the section on | ||||
|   :class:`~django.test.LiveServerTestCase` for more details. | ||||
|  | ||||
| A comprehensive test suite should use a combination of both test types. | ||||
| A comprehensive test suite should use a combination of all of these test types. | ||||
|  | ||||
| Overview and a quick example | ||||
| ---------------------------- | ||||
|   | ||||
		Reference in New Issue
	
	Block a user