parametrize_from_file.defaults
- parametrize_from_file.defaults(**defaults)
Return a schema function that will add the given default values to test cases. In other words, this is an easy way to provide default values for one or more test parameters.
- Parameters:
defaults – Keyword arguments where each key is the name of a parameter and each value is the corresponding default.
See the Optional parameters tutorial more much more info.
Example
>>> f = defaults(a=0, b=0) >>> f({'b': 1}) {'a': 0, 'b': 1}