Return every possible variation of this library. Return a list of keyword arguments to pass to the constructor to create every possible variation of this library. By default, this is every possible combination of boolean values to pass to the list of arguments returned by `vary_on`
(cls)
| 638 | |
| 639 | @classmethod |
| 640 | def variations(cls): |
| 641 | """Return every possible variation of this library. |
| 642 | |
| 643 | Return a list of keyword arguments to pass to the constructor to create |
| 644 | every possible variation of this library. |
| 645 | |
| 646 | By default, this is every possible combination of boolean values to pass |
| 647 | to the list of arguments returned by `vary_on`, but you can override |
| 648 | the behaviour. |
| 649 | """ |
| 650 | vary_on = cls.vary_on() |
| 651 | return [dict(zip(vary_on, toggles, strict=True)) for toggles in |
| 652 | itertools.product([False, True], repeat=len(vary_on))] |
| 653 | |
| 654 | @classmethod |
| 655 | def get_default_variation(cls, **kwargs): |
no test coverage detected