mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-09 01:03:24 +00:00
PEP8 Fixes
This commit is contained in:
@@ -77,7 +77,8 @@ class Cassette(ContextDecorator):
|
|||||||
# The cassette doesn't contain the request asked for.
|
# The cassette doesn't contain the request asked for.
|
||||||
raise UnhandledHTTPRequestError(
|
raise UnhandledHTTPRequestError(
|
||||||
"The cassette (%r) doesn't contain the request (%r) asked for"
|
"The cassette (%r) doesn't contain the request (%r) asked for"
|
||||||
% (self._path,request))
|
% (self._path, request)
|
||||||
|
)
|
||||||
|
|
||||||
def responses_of(self, request):
|
def responses_of(self, request):
|
||||||
'''
|
'''
|
||||||
@@ -94,7 +95,8 @@ class Cassette(ContextDecorator):
|
|||||||
# The cassette doesn't contain the request asked for.
|
# The cassette doesn't contain the request asked for.
|
||||||
raise UnhandledHTTPRequestError(
|
raise UnhandledHTTPRequestError(
|
||||||
"The cassette (%r) doesn't contain the request (%r) asked for"
|
"The cassette (%r) doesn't contain the request (%r) asked for"
|
||||||
% (self._path,request))
|
% (self._path, request)
|
||||||
|
)
|
||||||
|
|
||||||
def _as_dict(self):
|
def _as_dict(self):
|
||||||
return {"requests": self.requests, "responses": self.responses}
|
return {"requests": self.requests, "responses": self.responses}
|
||||||
|
|||||||
@@ -176,7 +176,7 @@ class VCRConnectionMixin:
|
|||||||
raise CannotOverwriteExistingCassetteException(
|
raise CannotOverwriteExistingCassetteException(
|
||||||
"Can't overwrite existing cassette (%r) in "
|
"Can't overwrite existing cassette (%r) in "
|
||||||
"your current record mode (%r)."
|
"your current record mode (%r)."
|
||||||
% (self.cassette._path, self.cassette.record_mode)
|
% (self.cassette._path, self.cassette.record_mode)
|
||||||
)
|
)
|
||||||
|
|
||||||
# Otherwise, we should send the request, then get the response
|
# Otherwise, we should send the request, then get the response
|
||||||
|
|||||||
Reference in New Issue
Block a user