Skip to content

Commit

Permalink
Refactor wrappers test cases including assert statement and rename a …
Browse files Browse the repository at this point in the history
…function
  • Loading branch information
slaily committed Dec 10, 2019
1 parent 4fd95a5 commit 23da340
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_wrappers.py
Expand Up @@ -17,9 +17,9 @@ def test_execute_single_test_scenario(_, mock):
'endpoint': 'users',
'host': 'http://localhost:8080',
}
list_of_result = wrappers.execute_single_test_scenario(json_data)
dict_data = wrappers.execute_single_test_scenario(json_data)

assert len(list_of_result) == 1
assert 'body' in dict_data


@patch('pyhttptest.wrappers.core.extract_http_response_content', return_value=dict)
Expand Down Expand Up @@ -54,6 +54,6 @@ def test_cli_execute(_, mock):
'headers': '{"Content-Type": "application/json"}',
'body': '{"username": "pyhttptest"}'
}
output = wrappers._execute('data/HTTP_GET.json')
output = wrappers.execute_test_scenarios('data/HTTP_GET.json')

return isinstance(output, str)

0 comments on commit 23da340

Please sign in to comment.