Closed pcoccoli closed 9 months ago
Sorry I thought I'd replied to this earlier, I did look at it a bit - this isn't easy to solve because Tavern assumes it can format that data it loads in (because it is actually 'loaded' by Tavern, it's injected into the test dictionary object by the Yaml library) and the only way to get around it is to, I think, make your json file yaml and use the !raw
tag with it like https://github.com/taverntesting/tavern/blob/722b40b786d7933e0243e47996922b45114fdb08/tests/integration/881_2.yaml#L1
https://github.com/taverntesting/tavern/blob/722b40b786d7933e0243e47996922b45114fdb08/tests/integration/881_2.yaml
See also : https://github.com/taverntesting/tavern/issues/881#issuecomment-1723455903
Basically the same error as #812 but the curly braces are in the JSON value.
example_response.json:
Results in: