cdent / gabbi

Declarative HTTP Testing for Python and anything else
http://gabbi.readthedocs.org/
Other
148 stars 34 forks source link

Read full json #216

Closed cdent closed 7 years ago

cdent commented 7 years ago

The change allows some or all of a JSON value to be read from disk to be used in a json path test. Examples are are in the data.yaml test file and in the jsonpath.rst file. This will help with test that either need to validate full responses or that have complex responses that need to be verified but are big enough that having them in the yaml file muddies the water.

This feature has been requested by a few different parties. It's not something I originally wanted to do but enough people wanted it and it is easy enough to do that...why fight it?

/cc @FND @jasonamyers @tomviner @justanotherdot

jaypipes commented 7 years ago

Good thing here. I like it. A lot. Will make some of the messier JSONPath entries in Placement gabbits a thing of the past. ++ from me! :)