Empty response body step is too restrictive

This commit is contained in:
Roberto Abdelkader Martínez Pérez
2019-08-23 11:53:11 +02:00
parent 90c0c6ddb7
commit 93a3562c04
5 changed files with 0 additions and 11 deletions
-5
View File
@@ -128,11 +128,6 @@ def step_impl(context):
assert is_subset(jsonexample.loads(context.text), context.response.json())
@then('I get an empty response body')
def step_impl(context):
assert context.response.content == b'', f"Response body is not empty. Got {context.response.content} instead."
@when('I delete the route with id "{id}"')
def step_impl(context, id):
context.response = requests.delete(f"{Env.KAPOW_CONTROLAPI_URL}/routes/{id}")