clarify that pytest.mark.parametrize() takes a list of argvalues and not just
arbitrary iterators. Addresses issue122.
This commit is contained in:
		
							parent
							
								
									7766526992
								
							
						
					
					
						commit
						dd0da4643a
					
				|  | @ -140,10 +140,12 @@ def pytest_generate_tests(metafunc): | ||||||
| def pytest_configure(config): | def pytest_configure(config): | ||||||
|     config.addinivalue_line("markers", |     config.addinivalue_line("markers", | ||||||
|         "parametrize(argnames, argvalues): call a test function multiple " |         "parametrize(argnames, argvalues): call a test function multiple " | ||||||
|         "times passing in multiple different argument value sets. Example: " |         "times passing in different arguments in turn. argvalues generally " | ||||||
|         "@parametrize('arg1', [1,2]) would lead to two calls of the decorated " |         "needs to be a list of values if argnames specifies only one name " | ||||||
|         "test function, one with arg1=1 and another with arg1=2." |         "or a list of tuples of values if argnames specifies multiple names. " | ||||||
|         " see http://pytest.org/latest/parametrize.html for more info and " |         "Example: @parametrize('arg1', [1,2]) would lead to two calls of the " | ||||||
|  |         "decorated test function, one with arg1=1 and another with arg1=2." | ||||||
|  |         "see http://pytest.org/latest/parametrize.html for more info and " | ||||||
|         "examples." |         "examples." | ||||||
|     ) |     ) | ||||||
|     config.addinivalue_line("markers", |     config.addinivalue_line("markers", | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue