mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-10 09:35:34 +00:00
docs: Fix a few typos
There are small typos in: - tests/integration/test_record_mode.py - tests/integration/test_stubs.py - vcr/stubs/__init__.py Fixes: - Should read `repercussions` rather than `repurcussions`. - Should read `superclass` rather than `superclas`. - Should read `cassette` rather than `casssette`. Signed-off-by: Tim Gates <tim.gates@iress.com>
This commit is contained in:
@@ -57,7 +57,7 @@ def test_new_episodes_record_mode(tmpdir, httpbin):
|
|||||||
assert cass.all_played
|
assert cass.all_played
|
||||||
|
|
||||||
# in the "new_episodes" record mode, we can add more requests to
|
# in the "new_episodes" record mode, we can add more requests to
|
||||||
# a cassette without repurcussions.
|
# a cassette without repercussions.
|
||||||
urlopen(httpbin.url + "/get").read()
|
urlopen(httpbin.url + "/get").read()
|
||||||
|
|
||||||
# one of the responses has been played
|
# one of the responses has been played
|
||||||
@@ -108,7 +108,7 @@ def test_all_record_mode(tmpdir, httpbin):
|
|||||||
urlopen(httpbin.url).read()
|
urlopen(httpbin.url).read()
|
||||||
|
|
||||||
# in the "all" record mode, we can add more requests to
|
# in the "all" record mode, we can add more requests to
|
||||||
# a cassette without repurcussions.
|
# a cassette without repercussions.
|
||||||
urlopen(httpbin.url + "/get").read()
|
urlopen(httpbin.url + "/get").read()
|
||||||
|
|
||||||
# The cassette was never actually played, even though it existed.
|
# The cassette was never actually played, even though it existed.
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ def test_original_decoded_response_is_not_modified(tmpdir, httpbin):
|
|||||||
inside = conn.getresponse()
|
inside = conn.getresponse()
|
||||||
|
|
||||||
# Assert that we do not modify the original response while appending
|
# Assert that we do not modify the original response while appending
|
||||||
# to the casssette.
|
# to the cassette.
|
||||||
assert "gzip" == inside.headers["content-encoding"]
|
assert "gzip" == inside.headers["content-encoding"]
|
||||||
|
|
||||||
# They should effectively be the same response.
|
# They should effectively be the same response.
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ class VCRHTTPResponse(HTTPResponse):
|
|||||||
def closed(self):
|
def closed(self):
|
||||||
# in python3, I can't change the value of self.closed. So I'
|
# in python3, I can't change the value of self.closed. So I'
|
||||||
# twiddling self._closed and using this property to shadow the real
|
# twiddling self._closed and using this property to shadow the real
|
||||||
# self.closed from the superclas
|
# self.closed from the superclass
|
||||||
return self._closed
|
return self._closed
|
||||||
|
|
||||||
def read(self, *args, **kwargs):
|
def read(self, *args, **kwargs):
|
||||||
|
|||||||
Reference in New Issue
Block a user