我想读取匹配的当前步骤字符串。在行为中,一旦匹配完成,它就会运行用匹配的步骤字符串标记的函数。我想打印这个步骤字符串。我怎么能做这么简单的任务?
例子:
@given("x is equal to 4")
def step_impl(context):
# Here I would like to print the string: 'x is equal to 4'
我想读取匹配的当前步骤字符串。在行为中,一旦匹配完成,它就会运行用匹配的步骤字符串标记的函数。我想打印这个步骤字符串。我怎么能做这么简单的任务?
例子:
@given("x is equal to 4")
def step_impl(context):
# Here I would like to print the string: 'x is equal to 4'