Skip to content
Snippets Groups Projects
Commit 357ed3a95baa authored by Martijn Pieters's avatar Martijn Pieters
Browse files

utils: add a decorator to move positional param args to keyword args

Usage:

```
class TestSuite(BaseTestSuite):
    params = BaseTestSuite.params + [foo_values, bar_values]
    param_names = BaseTestSuite.param_names + ['foo', 'bar']

    @params_as_kwargs
    def test_name(self, foo, bar, **kwargs):
        # ...

and you no longer have to worry about other parameters in BaseTestSuite.params.
parent fdff9b6ce641
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment