Allow special marker ANY inside JSON examples

This commit is contained in:
Roberto Abdelkader Martínez Pérez
2019-08-21 13:01:56 +02:00
parent c96584efcc
commit 2ec064a933
3 changed files with 32 additions and 1 deletions
+2 -1
View File
@@ -8,6 +8,7 @@ import subprocess
import requests
from environconfig import EnvironConfig, StringVar, IntVar, BooleanVar
from comparedict import is_subset
import jsonexample
import logging
@@ -134,7 +135,7 @@ def step_impl(context, reason):
@then('I get the following response body')
def step_impl(context):
assert is_subset(json.loads(context.text), context.response.json())
assert is_subset(jsonexample.loads(context.text), context.response.json())
@then('I get an empty response body')