@@ -194,7 +194,7 @@ def mocked_download(pa: PhotoAsset, _url: str) -> Response:
194194 f"DEBUG Setting EXIF timestamp for { os .path .join (data_dir , os .path .normpath ('2018/07/31/IMG_7409.JPG' ))} : { expectedDatetime } " ,
195195 self ._caplog .text ,
196196 )
197- self .assertIn ("INFO All photos have been downloaded" , self ._caplog .text )
197+ self .assertIn ("INFO All photos and videos have been downloaded" , self ._caplog .text )
198198
199199 def test_download_photos_and_get_exif_exceptions (self ) -> None :
200200 base_dir = os .path .join (self .fixtures_path , inspect .stack ()[0 ][3 ])
@@ -291,7 +291,7 @@ def test_skip_existing_downloads(self) -> None:
291291 f"DEBUG { os .path .join (data_dir , os .path .normpath ('2018/07/31/IMG_7409.MOV' ))} already exists" ,
292292 self ._caplog .text ,
293293 )
294- self .assertIn ("INFO All photos have been downloaded" , self ._caplog .text )
294+ self .assertIn ("INFO All photos and videos have been downloaded" , self ._caplog .text )
295295
296296 def test_until_found (self ) -> None :
297297 base_dir = os .path .join (self .fixtures_path , inspect .stack ()[0 ][3 ])
@@ -660,7 +660,7 @@ def test_missing_size(self) -> None:
660660 f"Errors for { filename } size { size } " ,
661661 )
662662
663- self .assertIn ("INFO All photos have been downloaded" , self ._caplog .text )
663+ self .assertIn ("INFO All photos and videos have been downloaded" , self ._caplog .text )
664664 self .assertEqual (result .exit_code , 0 , "Exit code" )
665665
666666 def test_size_fallback_to_original (self ) -> None :
@@ -713,7 +713,9 @@ def test_size_fallback_to_original(self) -> None:
713713 f"DEBUG Downloading { os .path .join (data_dir , os .path .normpath ('2018/07/31/IMG_7409.JPG' ))} " ,
714714 self ._caplog .text ,
715715 )
716- self .assertIn ("INFO All photos have been downloaded" , self ._caplog .text )
716+ self .assertIn (
717+ "INFO All photos and videos have been downloaded" , self ._caplog .text
718+ )
717719 dp_patched .assert_called_once_with (
718720 ANY ,
719721 False ,
@@ -773,7 +775,9 @@ def test_force_size(self) -> None:
773775 "ERROR thumb size does not exist for IMG_7409.JPG. Skipping..." ,
774776 self ._caplog .text ,
775777 )
776- self .assertIn ("INFO All photos have been downloaded" , self ._caplog .text )
778+ self .assertIn (
779+ "INFO All photos and videos have been downloaded" , self ._caplog .text
780+ )
777781 dp_patched .assert_not_called ()
778782
779783 assert result .exit_code == 0
@@ -829,7 +833,9 @@ def test_download_two_sizes_with_force_size(self) -> None:
829833 "ERROR medium size does not exist for IMG_7409.JPG. Skipping..." ,
830834 self ._caplog .text ,
831835 )
832- self .assertIn ("INFO All photos have been downloaded" , self ._caplog .text )
836+ self .assertIn (
837+ "INFO All photos and videos have been downloaded" , self ._caplog .text
838+ )
833839 dp_patched .assert_called_once_with (
834840 ANY ,
835841 False ,
@@ -893,7 +899,7 @@ def astimezone(self, _tz: (Any | None) = None) -> NoReturn:
893899 f"DEBUG Downloading { os .path .join (data_dir , os .path .normpath ('2018/01/01/IMG_7409.JPG' ))} " ,
894900 self ._caplog .text ,
895901 )
896- self .assertIn ("INFO All photos have been downloaded" , self ._caplog .text )
902+ self .assertIn ("INFO All photos and videos have been downloaded" , self ._caplog .text )
897903 assert result .exit_code == 0
898904
899905 @pytest .mark .skipif (sys .platform == "win32" , reason = "does not run on windows" )
@@ -951,7 +957,7 @@ def test_creation_date_without_century(self) -> None:
951957 f"DEBUG Downloading { os .path .join (data_dir , os .path .normpath ('5/01/01/IMG_7409.JPG' ))} " ,
952958 self ._caplog .text ,
953959 )
954- self .assertIn ("INFO All photos have been downloaded" , self ._caplog .text )
960+ self .assertIn ("INFO All photos and videos have been downloaded" , self ._caplog .text )
955961 assert result .exit_code == 0
956962
957963 def test_creation_date_prior_1970 (self ) -> None :
@@ -999,7 +1005,7 @@ def test_creation_date_prior_1970(self) -> None:
9991005 f"DEBUG Downloading { os .path .join (data_dir , os .path .normpath ('1965/01/01/IMG_7409.JPG' ))} " ,
10001006 self ._caplog .text ,
10011007 )
1002- self .assertIn ("INFO All photos have been downloaded" , self ._caplog .text )
1008+ self .assertIn ("INFO All photos and videos have been downloaded" , self ._caplog .text )
10031009 assert result .exit_code == 0
10041010
10051011 def test_missing_item_type (self ) -> None :
@@ -1310,7 +1316,9 @@ def mocked_download(pa: PhotoAsset, _url: str) -> Response:
13101316 f"INFO Downloading the first original photo or video to { data_dir } ..." ,
13111317 self ._caplog .text ,
13121318 )
1313- self .assertIn ("INFO All photos have been downloaded" , self ._caplog .text )
1319+ self .assertIn (
1320+ "INFO All photos and videos have been downloaded" , self ._caplog .text
1321+ )
13141322 assert result .exit_code == 0
13151323
13161324 def test_download_one_recent_live_photo_chinese (self ) -> None :
@@ -1367,7 +1375,9 @@ def mocked_download(pa: PhotoAsset, _url: str) -> Response:
13671375 f"INFO Downloading the first original photo or video to { data_dir } ..." ,
13681376 self ._caplog .text ,
13691377 )
1370- self .assertIn ("INFO All photos have been downloaded" , self ._caplog .text )
1378+ self .assertIn (
1379+ "INFO All photos and videos have been downloaded" , self ._caplog .text
1380+ )
13711381 assert result .exit_code == 0
13721382
13731383 def test_download_and_delete_after (self ) -> None :
@@ -2343,7 +2353,7 @@ def test_download_from_shared_library(self) -> None:
23432353 f"INFO Downloading the first original photo or video to { data_dir } ..." ,
23442354 self ._caplog .text ,
23452355 )
2346- self .assertIn ("INFO All photos have been downloaded" , self ._caplog .text )
2356+ self .assertIn ("INFO All photos and videos have been downloaded" , self ._caplog .text )
23472357
23482358 def test_download_and_skip_old (self ) -> None :
23492359 base_dir = os .path .join (self .fixtures_path , inspect .stack ()[0 ][3 ])
0 commit comments