Tests for functions which use *args or **kwargs
My args macro is OK.
PARAMETERS
Name | Description | Default Value |
---|---|---|
name | The name of the test rule. | none |
args | Other arguments to include | none |
RETURNS
An empty list.
*args and a keyword-only param
PARAMETERS
Name | Description | Default Value |
---|---|---|
name | The name | none |
args | Positional arguments | none |
*args and several keyword-only params
PARAMETERS
Name | Description | Default Value |
---|---|---|
name | The name | none |
number | The number | 3 |
args | Positional arguments | none |
*args, a keyword-only param, and **kwargs
PARAMETERS
Name | Description | Default Value |
---|---|---|
name | The name | none |
args | Positional arguments | none |
kwargs | Other named arguments | none |
*args, several keyword-only params, and **kwargs
PARAMETERS
Name | Description | Default Value |
---|---|---|
name | The name | none |
number | The number | 3 |
args | Positional arguments | none |
kwargs | Other named arguments | none |
Oh wow this macro has both.
Not much else to say.
PARAMETERS
Name | Description | Default Value |
---|---|---|
name | The name of the test rule. | none |
number | Some number used for important things | 3 |
args | Other arguments to include | none |
kwargs | Other attributes to include | none |
RETURNS
An empty list.
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
Name | Description | Default Value |
---|---|---|
name | The name of the test rule. | none |
config | Config to use for my macro | none |
deps | List of my macro's dependencies | [] |
kwargs | Other attributes to include | none |
RETURNS
An empty list.
One keyword-only param
PARAMETERS
Name | Description | Default Value |
---|---|---|
name | The name | none |
One keyword-only param and **kwargs
PARAMETERS
Name | Description | Default Value |
---|---|---|
name | The name | none |
kwargs | Other named arguments | none |
Several keyword-only params
PARAMETERS
Name | Description | Default Value |
---|---|---|
name | The name | none |
number | The number | 3 |
Several keyword-only params and **kwargs
PARAMETERS
Name | Description | Default Value |
---|---|---|
name | The name | none |
number | The number | 3 |
kwargs | Other named arguments | none |
Macro only taking *args
PARAMETERS
Name | Description | Default Value |
---|---|---|
args | Positional arguments | none |
Macro only taking *args and **kwargs
PARAMETERS
Name | Description | Default Value |
---|---|---|
args | Positional arguments | none |
kwargs | Named arguments | none |
Macro only taking **kwargs
PARAMETERS
Name | Description | Default Value |
---|---|---|
kwargs | Named arguments | none |
One ordinary param and several keyword-only params
PARAMETERS
Name | Description | Default Value |
---|---|---|
name | The name | none |
number | The number | none |
config | Configuration | none |
One ordinary param, *args, and several keyword-only params
PARAMETERS
Name | Description | Default Value |
---|---|---|
name | The name | none |
number | The number | none |
config | Configuration | none |
args | Positional arguments | none |
One ordinary param, *args, several keyword-only params, and **kwargs
PARAMETERS
Name | Description | Default Value |
---|---|---|
name | The name | none |
number | The number | none |
config | Configuration | none |
args | Other positional arguments | none |
kwargs | Other named arguments | none |
One ordinary param, several keyword-only params, and **kwargs
PARAMETERS
Name | Description | Default Value |
---|---|---|
name | The name | none |
number | The number | none |
config | Configuration | none |
kwargs | Other named arguments | none |
Several ordinary params and a keyword-only param
PARAMETERS
Name | Description | Default Value |
---|---|---|
name | The name | none |
number | The number | 3 |
config | Configuration | none |
Several ordinary params, *args, and a keyword-only param
PARAMETERS
Name | Description | Default Value |
---|---|---|
name | The name | none |
number | The number | 3 |
config | Configuration | none |
args | Positional arguments | none |
Several ordinary params, *args, one keyword-only param, and **kwargs
PARAMETERS
Name | Description | Default Value |
---|---|---|
name | The name | none |
number | The number | 3 |
config | Configuration | none |
args | Other positional arguments | none |
kwargs | Other named arguments | none |
Several ordinary params, a keyword-only param, and **kwargs
PARAMETERS
Name | Description | Default Value |
---|---|---|
name | The name | none |
number | The number | 3 |
config | Configuration | none |
kwargs | Other named arguments | none |