Skip to content

Commit

Permalink
Fix a bug introduced by MyCapytain 2.0.6 in tests where requests are …
Browse files Browse the repository at this point in the history
…patched
  • Loading branch information
PonteIneptique committed Jan 26, 2018
1 parent 57dd47c commit b89e5a2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/test_resources.py
Expand Up @@ -22,15 +22,21 @@ def create_test_app(debug=False, config=None):
class RequestPatch(object):
""" Request patch object to deal with patching reply in flask.ext.nemo
"""
encoding = "utf-8"

def __init__(self, f):
self.__text = f.read()

@staticmethod
def raise_for_status():
return None

@property
def text(self):
return self.__text


class RequestPatchChained(object):
class RequestPatchChained(RequestPatch):
""" Request patch object to deal with patching reply in flask.ext.nemo
"""
def __init__(self, requests):
Expand Down

0 comments on commit b89e5a2

Please sign in to comment.