Tests in Behave are written as (for example)
Then parameters will have the following values
| name | val |
| name1 | 5 |
| name2 | 7 |
then in the supporting python the python will have
@then("parameters will have the following values")
def check_values(context):
I am trying to unittest the python and i don't know how to create a unit test for the check_values function because i am not sure how to create something to pass in as the context parameter. Does anyone know?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…