From d1156cde438227a1b1fd5776b5cb157165e81874 Mon Sep 17 00:00:00 2001 From: Daniel Manchon Date: Wed, 11 Jul 2018 12:37:39 +0200 Subject: [PATCH] Fill the reason --- CHANGELOG.rst | 5 +++++ cassettedeck/store.py | 1 + setup.py | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index dd8c31b..dc914d4 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,11 @@ Changelog ========= +1.1.8 +----- + + - Fill the reason field in the response + 1.1.7 ----- diff --git a/cassettedeck/store.py b/cassettedeck/store.py index 8861efc..016db37 100644 --- a/cassettedeck/store.py +++ b/cassettedeck/store.py @@ -148,6 +148,7 @@ def build_response(self, method, url, params, data, headers): # Replicate status code and reason resp.status = resp_json['status']['code'] + resp.reason = resp_json['status']['message'] # Set default plain/text if no Content-Type try: diff --git a/setup.py b/setup.py index 31b9f5f..e856798 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ setup( name='cassettedeck', - version='1.1.7', + version='1.1.8', description='A library store and replay aiohttp requests', long_description='To simplify and speed up tests that make HTTP requests', author='Developer team at Onna Technologies',