From 723fb44162343b5106d03875255200c65fa2d2bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Ignacio=20Torres?= Date: Sat, 7 Oct 2023 11:40:02 -0700 Subject: [PATCH] fix: use right type in comparison --- tests/test_cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_cli.py b/tests/test_cli.py index 1c964e7..cffe2ad 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -193,7 +193,7 @@ def _download_book(book_id: int) -> Optional[BytesIO]: monkeypatch.setattr(cli, "setup_settings", lambda: None) monkeypatch.setattr(cli, "download_book", _download_book) monkeypatch.setattr("getpass.getpass", _getpass_mock) - monkeypatch.setattr(cli, "send_book", lambda book_id, *_: book_id != "5678") + monkeypatch.setattr(cli, "send_book", lambda book_id, *_: book_id != 5678) with patch.object( sys, "argv", ["gutenberg2kindle", "send", "--book-id", "1234", "5678", "9101"] @@ -225,7 +225,7 @@ def _download_book(book_id: int) -> Optional[BytesIO]: monkeypatch.setattr(cli, "setup_settings", lambda: None) monkeypatch.setattr(cli, "download_book", _download_book) monkeypatch.setattr("getpass.getpass", _getpass_mock) - monkeypatch.setattr(cli, "send_book", lambda book_id, *_: book_id != "5678") + monkeypatch.setattr(cli, "send_book", lambda book_id, *_: book_id != 5678) with patch.object( sys,