View source on GitHub |
Returns a decorator for parameterizing a test by a context.
tff.test.with_contexts(
*named_contexts
)
Args | |
---|---|
*named_contexts
|
Named parameters used to construct the with_context
decorator; either a single iterable, or a list of tuple s or dict s.
|
Raises | |
---|---|
ValueError
|
If no named contexts are passed to the decorator. |