Tests for functions which use *args or **kwargs

macro_with_args

My args macro is OK.

PARAMETERS

NameDescriptionDefault Value
nameThe name of the test rule.none
argsOther arguments to includenone

RETURNS

An empty list.

macro_with_args_and_kwonly

*args and a keyword-only param

PARAMETERS

NameDescriptionDefault Value
nameThe namenone
argsPositional argumentsnone

macro_with_args_and_kwonlys

*args and several keyword-only params

PARAMETERS

NameDescriptionDefault Value
nameThe namenone
numberThe number3
argsPositional argumentsnone

macro_with_args_kwonly_and_kwargs

*args, a keyword-only param, and **kwargs

PARAMETERS

NameDescriptionDefault Value
nameThe namenone
argsPositional argumentsnone
kwargsOther named argumentsnone

macro_with_args_kwonlys_and_kwargs

*args, several keyword-only params, and **kwargs

PARAMETERS

NameDescriptionDefault Value
nameThe namenone
numberThe number3
argsPositional argumentsnone
kwargsOther named argumentsnone

macro_with_both

Oh wow this macro has both.

Not much else to say.

PARAMETERS

NameDescriptionDefault Value
nameThe name of the test rule.none
numberSome number used for important things3
argsOther arguments to includenone
kwargsOther attributes to includenone

RETURNS

An empty list.

macro_with_kwargs

My kwargs macro is the best.

This is a long multi-line doc string. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer elementum, diam vitae tincidunt pulvinar, nunc tortor volutpat dui, vitae facilisis odio ligula a tortor. Donec ullamcorper odio eget ipsum tincidunt, vel mollis eros pellentesque.

PARAMETERS

NameDescriptionDefault Value
nameThe name of the test rule.none
configConfig to use for my macronone
depsList of my macro's dependencies[]
kwargsOther attributes to includenone

RETURNS

An empty list.

macro_with_kwonly

One keyword-only param

PARAMETERS

NameDescriptionDefault Value
nameThe namenone

macro_with_kwonly_and_kwargs

One keyword-only param and **kwargs

PARAMETERS

NameDescriptionDefault Value
nameThe namenone
kwargsOther named argumentsnone

macro_with_kwonlys

Several keyword-only params

PARAMETERS

NameDescriptionDefault Value
nameThe namenone
numberThe number3

macro_with_kwonlys_and_kwargs

Several keyword-only params and **kwargs

PARAMETERS

NameDescriptionDefault Value
nameThe namenone
numberThe number3
kwargsOther named argumentsnone

macro_with_only_args

Macro only taking *args

PARAMETERS

NameDescriptionDefault Value
argsPositional argumentsnone

macro_with_only_args_and_kwargs

Macro only taking *args and **kwargs

PARAMETERS

NameDescriptionDefault Value
argsPositional argumentsnone
kwargsNamed argumentsnone

macro_with_only_kwargs

Macro only taking **kwargs

PARAMETERS

NameDescriptionDefault Value
kwargsNamed argumentsnone

macro_with_ordinary_param_and_kwonlys

One ordinary param and several keyword-only params

PARAMETERS

NameDescriptionDefault Value
nameThe namenone
numberThe numbernone
configConfigurationnone

macro_with_ordinary_param_args_and_kwonlys

One ordinary param, *args, and several keyword-only params

PARAMETERS

NameDescriptionDefault Value
nameThe namenone
numberThe numbernone
configConfigurationnone
argsPositional argumentsnone

macro_with_ordinary_param_args_kwonlys_and_kwargs

One ordinary param, *args, several keyword-only params, and **kwargs

PARAMETERS

NameDescriptionDefault Value
nameThe namenone
numberThe numbernone
configConfigurationnone
argsOther positional argumentsnone
kwargsOther named argumentsnone

macro_with_ordinary_param_kwonlys_and_kwargs

One ordinary param, several keyword-only params, and **kwargs

PARAMETERS

NameDescriptionDefault Value
nameThe namenone
numberThe numbernone
configConfigurationnone
kwargsOther named argumentsnone

macro_with_ordinary_params_and_kwonly

Several ordinary params and a keyword-only param

PARAMETERS

NameDescriptionDefault Value
nameThe namenone
numberThe number3
configConfigurationnone

macro_with_ordinary_params_args_and_kwonly

Several ordinary params, *args, and a keyword-only param

PARAMETERS

NameDescriptionDefault Value
nameThe namenone
numberThe number3
configConfigurationnone
argsPositional argumentsnone

macro_with_ordinary_params_args_kwonly_and_kwargs

Several ordinary params, *args, one keyword-only param, and **kwargs

PARAMETERS

NameDescriptionDefault Value
nameThe namenone
numberThe number3
configConfigurationnone
argsOther positional argumentsnone
kwargsOther named argumentsnone

macro_with_ordinary_params_kwonly_and_kwargs

Several ordinary params, a keyword-only param, and **kwargs

PARAMETERS

NameDescriptionDefault Value
nameThe namenone
numberThe number3
configConfigurationnone
kwargsOther named argumentsnone