Skip to content

Commit

Permalink
Document request_headers template use
Browse files Browse the repository at this point in the history
  • Loading branch information
cdent committed Mar 2, 2015
1 parent 63df050 commit 19f3f29
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/source/format.rst
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ All of these variables may be used in all of the following fields:

* ``url``
* ``data``
* ``request_headers``
* ``response_strings``
* ``response_json_paths`` (on the value side of the key value pair)
* ``response_headers`` (on the value side of the key value pair)
Expand Down
2 changes: 1 addition & 1 deletion gabbi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
# under the License.
"""See gabbi.driver and gabbbi.case."""

__version__ = '0.9.0'
__version__ = '0.10.0'
4 changes: 2 additions & 2 deletions gabbi/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ def _run_test(self):

method = test['method'].upper()
headers = test['request_headers']
for k in headers:
headers[k] = self.replace_template(headers[k])
for name in headers:
headers[name] = self.replace_template(headers[name])

if test['data']:
body = self._test_data_to_string(
Expand Down

0 comments on commit 19f3f29

Please sign in to comment.