Skip to content

Commit

Permalink
Merge pull request #189 from tomviner/data-files-in-subdirs
Browse files Browse the repository at this point in the history
Docs for <@file/path.txt
  • Loading branch information
cdent committed Nov 28, 2016
2 parents 07dc491 + 59ed73d commit e005836
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/source/format.rst
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,9 @@ flexibility when doing a ``POST`` or ``PUT``. If the value is not a
string (that is, it is a sequence or structure) it is treated as a
data structure which is turned into a JSON string. If the value is a
string that begins with ``<@`` then the rest of the string is treated
as the name of a file to be loaded from the same directory as the YAML
file. If the value is an undecorated string, that's the value.
as a filepath to be loaded. The path is relative to the test directory
and may not traverse up into parent directories. If the value is an
undecorated string, that's the value.

When reading from a file care should be taken to ensure that a
reasonable content-type is set for the data as this will control if any
Expand Down

0 comments on commit e005836

Please sign in to comment.