Given there is this user :
"""
username: Bender
password: (\/) (;,,;) (\/)
email: 2716057@robots.mom
"""
(because yeah, deep down, Bender is rooting for Zoidberg)
And define it like this :
@Given(u"there is this user :")
def there_is_this_user(context):
# do stuff with context.text in YAML format
The trailing : screws up matching !
I have to define it like this, with a trailing space :
@Given(u"there is this user ")
Maybe it's a behave issue, not a behave-django issue, but I don't know the codebases.
Can you help me ?
I know I can easily go around this problem by using the regex parser instead, but I'm trying to teach BDD to people that don't know first thing about regexes and we all need them to learn BDD fast.
Say I write a step like this :
(because yeah, deep down, Bender is rooting for Zoidberg)
And define it like this :
The trailing
:
screws up matching ! I have to define it like this, with a trailing space :Maybe it's a
behave
issue, not abehave-django
issue, but I don't know the codebases. Can you help me ?I know I can easily go around this problem by using the regex parser instead, but I'm trying to teach BDD to people that don't know first thing about regexes and we all need them to learn BDD fast.