Skip to content

Commit 71f42ce

Browse files
ensure test are green without internet connection (#943)
1 parent 5d417e0 commit 71f42ce

14 files changed

+15
-14
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ test = [
6060
"pytest==7.4.3",
6161
"mock==5.1.0",
6262
"freezegun==1.5.1",
63-
"vcrpy==4.4.0",
63+
"vcrpy==6.0.1",
6464
"pytest-cov==4.1.0",
6565
"ruff==0.5.0",
6666
"coveralls==3.3.1",

tests/test_authentication.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
from tests.helpers import path_from_project_root, recreate_path
2121

22-
vcr = VCR(decode_compressed_response=True)
22+
vcr = VCR(decode_compressed_response=True, record_mode="none")
2323

2424

2525
class AuthenticationTestCase(TestCase):

tests/test_autodelete_photos.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
from tests.helpers import path_from_project_root, print_result_exception, recreate_path
2121

22-
vcr = VCR(decode_compressed_response=True, record_mode="new_episodes")
22+
vcr = VCR(decode_compressed_response=True, record_mode="none")
2323

2424

2525
class AutodeletePhotosTestCase(TestCase):
@@ -68,6 +68,7 @@ def astimezone(self, _tz: (Optional[Any]) = None) -> NoReturn:
6868
cookie_dir,
6969
],
7070
)
71+
print_result_exception(result)
7172

7273
self.assertIn(
7374
"DEBUG Looking up all photos and videos from album All Photos...",

tests/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
from tests.helpers import path_from_project_root, print_result_exception, recreate_path
1414

15-
vcr = VCR(decode_compressed_response=True)
15+
vcr = VCR(decode_compressed_response=True, record_mode="none")
1616

1717

1818
class CliTestCase(TestCase):

tests/test_download_live_photos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
run_icloudpd_test,
1212
)
1313

14-
vcr = VCR(decode_compressed_response=True)
14+
vcr = VCR(decode_compressed_response=True, record_mode="none")
1515

1616

1717
class DownloadLivePhotoTestCase(TestCase):

tests/test_download_live_photos_id.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
run_icloudpd_test,
1111
)
1212

13-
vcr = VCR(decode_compressed_response=True)
13+
vcr = VCR(decode_compressed_response=True, record_mode="none")
1414

1515

1616
class DownloadLivePhotoNameIDTestCase(TestCase):

tests/test_download_photos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
run_icloudpd_test,
3131
)
3232

33-
vcr = VCR(decode_compressed_response=True)
33+
vcr = VCR(decode_compressed_response=True, record_mode="none")
3434

3535

3636
class DownloadPhotoTestCase(TestCase):

tests/test_download_photos_id.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
run_icloudpd_test,
3232
)
3333

34-
vcr = VCR(decode_compressed_response=True)
34+
vcr = VCR(decode_compressed_response=True, record_mode="none")
3535

3636

3737
class DownloadPhotoNameIDTestCase(TestCase):

tests/test_email_notifications.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
from tests.helpers import path_from_project_root, recreate_path
1313

14-
vcr = VCR(decode_compressed_response=True)
14+
vcr = VCR(decode_compressed_response=True, record_mode="none")
1515

1616

1717
class EmailNotificationsTestCase(TestCase):

tests/test_folder_structure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
run_icloudpd_test,
1818
)
1919

20-
vcr = VCR(decode_compressed_response=True)
20+
vcr = VCR(decode_compressed_response=True, record_mode="none")
2121

2222

2323
class FolderStructureTestCase(TestCase):

0 commit comments

Comments
 (0)