diff --git a/tests/test_options.py b/tests/test_options.py index 5a5505a..2ba5b20 100644 --- a/tests/test_options.py +++ b/tests/test_options.py @@ -30,13 +30,13 @@ def test_get_method(self) -> None: assert options.get("0") == 1 def test_set_method(self) -> None: - self.api.set_global_options = lambda x: True # type: ignore[method-assign] + self.api.set_global_options = lambda x: True # type: ignore[assignment] options = Options(self.api, {}) assert options.set("0", 0) assert options.get("0") == "0" def test_set_method_failure(self) -> None: - self.api.set_global_options = lambda x: False # type: ignore[method-assign] + self.api.set_global_options = lambda x: False # type: ignore[assignment] options = Options(self.api, {"0": "0"}) assert not options.set("0", "1") assert not options.set("1", "1") @@ -44,7 +44,7 @@ def test_set_method_failure(self) -> None: assert options.get("1") is None def test_set_method_for_download(self) -> None: - self.api.set_options = lambda x, y: [True] # type: ignore[method-assign] + self.api.set_options = lambda x, y: [True] # type: ignore[assignment] options = Options(self.api, {}, Download(self.api, {})) assert options.set("0", 0) assert options.get("0") == "0" @@ -54,7 +54,7 @@ def test_set_method_for_download(self) -> None: class TestOptionsProperties: def setup_method(self) -> None: self.api = API() - self.api.set_global_options = lambda x: True # type: ignore[method-assign] + self.api.set_global_options = lambda x: True # type: ignore[assignment] self.options = Options(self.api, {}) def test_all_proxy_properties(self) -> None: