Gabbi 1.7.0 has been released with a new feature for handling URLs and request methods. Based on feedback during a sneak preview at PyconUK 2015, people are going to like it.
The original way to express a request in a gabbi test looked like this:
tests:
- name: get article one
method: GET
url: /article/1
status: 200
Now in addition to that it is also possible to do this:
tests:
- name: get article one
GET: /article/1
status: 200
Note that in either case the status key is not strictly required as
the default status is 200
.