From e05ebca5e505077efdcff9f2f0ac901ec967411e Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 5 Sep 2021 08:35:59 +0200 Subject: [PATCH] Fix typos discovered by codespell --- tests/integration/test_basic.py | 2 +- tests/integration/test_register_persister.py | 2 +- tests/unit/test_migration.py | 2 +- vcr/stubs/__init__.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/integration/test_basic.py b/tests/integration/test_basic.py index 56b969f..063e281 100644 --- a/tests/integration/test_basic.py +++ b/tests/integration/test_basic.py @@ -11,7 +11,7 @@ import vcr def test_nonexistent_directory(tmpdir, httpbin): """If we load a cassette in a nonexistent directory, it can save ok""" - # Check to make sure directory doesnt exist + # Check to make sure directory doesn't exist assert not os.path.exists(str(tmpdir.join("nonexistent"))) # Run VCR to create dir and cassette file diff --git a/tests/integration/test_register_persister.py b/tests/integration/test_register_persister.py index 945ee71..29d64b1 100644 --- a/tests/integration/test_register_persister.py +++ b/tests/integration/test_register_persister.py @@ -30,7 +30,7 @@ def test_save_cassette_with_custom_persister(tmpdir, httpbin): my_vcr = vcr.VCR() my_vcr.register_persister(CustomFilesystemPersister) - # Check to make sure directory doesnt exist + # Check to make sure directory doesn't exist assert not os.path.exists(str(tmpdir.join("nonexistent"))) # Run VCR to create dir and cassette file using new save_cassette callback diff --git a/tests/unit/test_migration.py b/tests/unit/test_migration.py index 63e8aa4..f21aaba 100644 --- a/tests/unit/test_migration.py +++ b/tests/unit/test_migration.py @@ -44,4 +44,4 @@ def test_try_migrate_with_invalid_or_new_cassettes(tmpdir): for file_path in files: shutil.copy(file_path, cassette) assert not vcr.migration.try_migrate(cassette) - assert filecmp.cmp(cassette, file_path) # shold not change file + assert filecmp.cmp(cassette, file_path) # should not change file diff --git a/vcr/stubs/__init__.py b/vcr/stubs/__init__.py index 0b4811c..2714d96 100644 --- a/vcr/stubs/__init__.py +++ b/vcr/stubs/__init__.py @@ -314,7 +314,7 @@ class VCRConnection: def __setattr__(self, name, value): """ We need to define this because any attributes that are set on the - VCRConnection need to be propogated to the real connection. + VCRConnection need to be propagated to the real connection. For example, urllib3 will set certain attributes on the connection, such as 'ssl_version'. These attributes need to get set on the real