Fixes #4064 by correcting the documentation for unit-tests
This commit is contained in:
		
							parent
							
								
									3f03625a5d
								
							
						
					
					
						commit
						f9ac60807c
					
				|  | @ -0,0 +1 @@ | ||||||
|  | According to unittest.rst, setUpModule and tearDownModule were not implemented, but it turns out they are. So updated the documentation for unittest. | ||||||
|  | @ -22,16 +22,15 @@ Almost all ``unittest`` features are supported: | ||||||
| 
 | 
 | ||||||
| * ``@unittest.skip`` style decorators; | * ``@unittest.skip`` style decorators; | ||||||
| * ``setUp/tearDown``; | * ``setUp/tearDown``; | ||||||
| * ``setUpClass/tearDownClass()``; | * ``setUpClass/tearDownClass``; | ||||||
|  | * ``setUpModule/tearDownModule``; | ||||||
| 
 | 
 | ||||||
| .. _`load_tests protocol`: https://docs.python.org/3/library/unittest.html#load-tests-protocol | .. _`load_tests protocol`: https://docs.python.org/3/library/unittest.html#load-tests-protocol | ||||||
| .. _`setUpModule/tearDownModule`: https://docs.python.org/3/library/unittest.html#setupmodule-and-teardownmodule |  | ||||||
| .. _`subtests`: https://docs.python.org/3/library/unittest.html#distinguishing-test-iterations-using-subtests | .. _`subtests`: https://docs.python.org/3/library/unittest.html#distinguishing-test-iterations-using-subtests | ||||||
| 
 | 
 | ||||||
| Up to this point pytest does not have support for the following features: | Up to this point pytest does not have support for the following features: | ||||||
| 
 | 
 | ||||||
| * `load_tests protocol`_; | * `load_tests protocol`_; | ||||||
| * `setUpModule/tearDownModule`_; |  | ||||||
| * `subtests`_; | * `subtests`_; | ||||||
| 
 | 
 | ||||||
| Benefits out of the box | Benefits out of the box | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue