Closed zhaohaifei closed 2 years ago
I wrote a program as follows:
parse = functools.partial(parsers.parse)
Scenario Outline: Normal enable_audit parameter Given enable_audit is assigned an normal parameter:
Examples: | abc | | 1 |
@given(parse("enable_audit is assigned an normal parameter: {abc}")) def normal_enable_audit_param(abc): pass
Why can't the parser parse to 1, but parse it as ''?
I wrote a program as follows:
parse = functools.partial(parsers.parse)
Scenario Outline: Normal enable_audit parameter Given enable_audit is assigned an normal parameter:
@given(parse("enable_audit is assigned an normal parameter: {abc}")) def normal_enable_audit_param(abc): pass
Why can't the parser parse to 1, but parse it as ''?