When gabbi-run is passed one or more files, set the working directory for the associated test suite as the directory of each test file. Doing so ensures that `<@file` syntax in the YAML has a fixed point from which to find the data files. If data comes from STDIN then the test directory is '.' (as it has always been). Fixes #184
9 lines
145 B
YAML
9 lines
145 B
YAML
tests:
|
|
|
|
- name: POST data from file
|
|
verbose: true
|
|
POST: /
|
|
request_headers:
|
|
content-type: application/json
|
|
data: <@subdir/sample.json
|