Add `slow` marker in run/skip option example. (#5416)
Add `slow` marker in run/skip option example.
This commit is contained in:
		
						commit
						042a10f2e2
					
				
							
								
								
									
										1
									
								
								AUTHORS
								
								
								
								
							
							
						
						
									
										1
									
								
								AUTHORS
								
								
								
								
							|  | @ -200,6 +200,7 @@ Pulkit Goyal | ||||||
| Punyashloka Biswal | Punyashloka Biswal | ||||||
| Quentin Pradet | Quentin Pradet | ||||||
| Ralf Schmitt | Ralf Schmitt | ||||||
|  | Ralph Giles | ||||||
| Ran Benita | Ran Benita | ||||||
| Raphael Castaneda | Raphael Castaneda | ||||||
| Raphael Pierzina | Raphael Pierzina | ||||||
|  |  | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | Fix PytestUnknownMarkWarning in run/skip example. | ||||||
|  | @ -157,6 +157,10 @@ line option to control skipping of ``pytest.mark.slow`` marked tests: | ||||||
|         ) |         ) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |     def pytest_configure(config): | ||||||
|  |         config.addinivalue_line("markers", "slow: mark test as slow to run") | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|     def pytest_collection_modifyitems(config, items): |     def pytest_collection_modifyitems(config, items): | ||||||
|         if config.getoption("--runslow"): |         if config.getoption("--runslow"): | ||||||
|             # --runslow given in cli: do not skip slow tests |             # --runslow given in cli: do not skip slow tests | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue