Skip to content

Commit

Permalink
Add test for quoted variable definitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
sharat87 committed Mar 24, 2019
1 parent 9de5194 commit 1cc8c70
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions python3/test_roast.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,15 @@ def test_interpolation_in_headers():
assert req.headers['accept'] == 'application/javascript'


def test_quoted_variable():
req = ra.build_request([
'set name "Sherlock Holmes"',
'GET /get name',
], 1)

assert req.params == {'name': 'Sherlock Holmes'}


def test_variable_with_json_value():
req = ra.build_request([
'set payload \'{{"username": "Sherlock", "password": "Moriarty"}}\'',
Expand Down

0 comments on commit 1cc8c70

Please sign in to comment.