From d90882470da57875dcf32d845cd684a25fbdf34f Mon Sep 17 00:00:00 2001 From: Stefan Cosma Date: Wed, 21 Feb 2024 22:26:40 +0200 Subject: [PATCH] Fixes linter errors --- test_plexorcist.py | 39 +++++++++++++++++++++++++++++++++++---- 1 file changed, 35 insertions(+), 4 deletions(-) diff --git a/test_plexorcist.py b/test_plexorcist.py index 35f9d9a..2ca4469 100644 --- a/test_plexorcist.py +++ b/test_plexorcist.py @@ -20,6 +20,7 @@ def test_set_older_than(self): plexorcist = Plexorcist() plexorcist.config_file = MagicMock() plexorcist.config_file.get.return_value = "1d" + # pylint: disable=protected-access older_than = plexorcist._set_older_than() # Assertions @@ -35,7 +36,13 @@ def test_convert_to_library_ids(self, mock_make_request): # Prepare test data mock_response = MagicMock() - mock_response.content = b'' + mock_response.content = ( + b'' + b"" + b'' + b'' + b"" + ) mock_make_request.return_value = mock_response # Test convert_to_library_ids method @@ -56,7 +63,13 @@ def test_get_available_libraries(self, mock_make_request): # Prepare test data mock_response = MagicMock() - mock_response.content = b'' + mock_response.content = ( + b'' + b"" + b'' + b'' + b"" + ) mock_make_request.return_value = mock_response # Test get_available_libraries method @@ -123,7 +136,16 @@ def test_handle_videos(self, mock_make_request): # Prepare test data mock_response = MagicMock() - mock_response.content = b'' + mock_response.content = ( + b'' + b'' + b'" + b"" + ) mock_make_request.return_value = mock_response # Test handle_videos method @@ -213,7 +235,16 @@ def test_delete_videos(self, mock_make_request): # Prepare test data mock_response = MagicMock() - mock_response.content = b'' + mock_response.content = ( + b'' + b'' + b'" + b"" + ) mock_make_request.return_value = mock_response watched_videos = [ {