double quotation

14 views
Skip to first unread message

ramas...@gmail.com

unread,
May 27, 2016, 4:11:50 AM5/27/16
to Lettuce Users
Hey Guys,
I have a test scenario like this

When I do POST request to /my/api/url
Then json response should match the following
"""
{
    "age": 29,
    "name": "test"
}
"""

However due to the decision of giving initial and trailing double quotation a special meaning, the string above becomes

{
age": 29,
name": "test
}

And there doesn't seem to be any straight forward solution to overcome this.
Would it be possible to add some settings flag to treat string between """ as it is?
I am a developer and totally willing to write a fix once package maintainers agree on it
Reply all
Reply to author
Forward
0 new messages