Skip to content

Commit 482a498

Browse files
committed
fix tests
1 parent 6b98f13 commit 482a498

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/test_download_photos.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ def mocked_authenticate(self: PyiCloudService) -> None:
491491
def test_handle_session_error_during_photo_iteration(self) -> None:
492492
base_dir = os.path.join(self.fixtures_path, inspect.stack()[0][3])
493493

494-
def mock_raise_response_error(_offset: int) -> NoReturn:
494+
def mock_raise_response_error() -> NoReturn:
495495
raise PyiCloudAPIResponseException("Invalid global session", "100")
496496

497497
with mock.patch("time.sleep") as sleep_mock: # noqa: SIM117
@@ -1760,7 +1760,7 @@ def mock_raise_response_error(_arg: Any) -> NoReturn:
17601760
def test_handle_internal_error_during_photo_iteration(self) -> None:
17611761
base_dir = os.path.join(self.fixtures_path, inspect.stack()[0][3])
17621762

1763-
def mock_raise_response_error(_offset: int) -> NoReturn:
1763+
def mock_raise_response_error() -> NoReturn:
17641764
raise PyiCloudAPIResponseException("INTERNAL_ERROR", "INTERNAL_ERROR")
17651765

17661766
with mock.patch("time.sleep") as sleep_mock: # noqa: SIM117

tests/test_download_photos_id.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ def mocked_authenticate(self: PyiCloudService) -> None:
491491
def test_handle_session_error_during_photo_iteration_name_id7(self) -> None:
492492
base_dir = os.path.join(self.fixtures_path, inspect.stack()[0][3])
493493

494-
def mock_raise_response_error(_offset: int) -> NoReturn:
494+
def mock_raise_response_error() -> NoReturn:
495495
raise PyiCloudAPIResponseException("Invalid global session", "100")
496496

497497
with mock.patch("time.sleep") as sleep_mock: # noqa: SIM117
@@ -1687,7 +1687,7 @@ def mock_raise_response_error(_arg: Any) -> NoReturn:
16871687
def test_handle_internal_error_during_photo_iteration_name_id7(self) -> None:
16881688
base_dir = os.path.join(self.fixtures_path, inspect.stack()[0][3])
16891689

1690-
def mock_raise_response_error(_offset: int) -> NoReturn:
1690+
def mock_raise_response_error() -> NoReturn:
16911691
raise PyiCloudAPIResponseException("INTERNAL_ERROR", "INTERNAL_ERROR")
16921692

16931693
with mock.patch("time.sleep") as sleep_mock: # noqa: SIM117

0 commit comments

Comments
 (0)