Skip to content

Commit

Permalink
docs: Fix a few typos
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
timgates42 authored and jairhenrique committed Aug 4, 2022
1 parent 9c46831 commit 35378d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/integration/test_record_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def test_new_episodes_record_mode(tmpdir, httpbin):
assert cass.all_played

# 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()

# one of the responses has been played
Expand Down Expand Up @@ -108,7 +108,7 @@ def test_all_record_mode(tmpdir, httpbin):
urlopen(httpbin.url).read()

# in the "all" record mode, we can add more requests to
# a cassette without repurcussions.
# a cassette without repercussions.
urlopen(httpbin.url + "/get").read()

# The cassette was never actually played, even though it existed.
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_stubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def test_original_decoded_response_is_not_modified(tmpdir, httpbin):
inside = conn.getresponse()

# Assert that we do not modify the original response while appending
# to the casssette.
# to the cassette.
assert "gzip" == inside.headers["content-encoding"]

# They should effectively be the same response.
Expand Down
2 changes: 1 addition & 1 deletion vcr/stubs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def __init__(self, recorded_response):
def closed(self):
# in python3, I can't change the value of self.closed. So I'
# twiddling self._closed and using this property to shadow the real
# self.closed from the superclas
# self.closed from the superclass
return self._closed

def read(self, *args, **kwargs):
Expand Down

0 comments on commit 35378d0

Please sign in to comment.