1"""Tests for functions which use *args or **kwargs""" 2 3def macro_with_kwargs(name, config, deps = [], **kwargs): 4 """My kwargs macro is the best. 5 6 This is a long multi-line doc string. 7 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer 8 elementum, diam vitae tincidunt pulvinar, nunc tortor volutpat dui, 9 vitae facilisis odio ligula a tortor. Donec ullamcorper odio eget ipsum tincidunt, 10 vel mollis eros pellentesque. 11 12 Args: 13 name: The name of the test rule. 14 config: Config to use for my macro 15 deps: List of my macro's dependencies 16 **kwargs: Other attributes to include 17 18 Returns: 19 An empty list. 20 """ 21 _ignore = [name, config, deps, kwargs] # @unused 22 return [] 23 24def macro_with_args(name, *args): 25 """My args macro is OK. 26 27 Args: 28 name: The name of the test rule. 29 *args: Other arguments to include 30 31 Returns: 32 An empty list. 33 """ 34 _ignore = [name, args] # @unused 35 return [] 36 37def macro_with_both(name, number = 3, *args, **kwargs): 38 """Oh wow this macro has both. 39 40 Not much else to say. 41 42 Args: 43 name: The name of the test rule. 44 number: Some number used for important things 45 *args: Other arguments to include 46 **kwargs: Other attributes to include 47 48 Returns: 49 An empty list. 50 """ 51 _ignore = [name, number, args, kwargs] # @unused 52 return [] 53