Skip to content

Commit

Permalink
Fix minor Pylint warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
joanbm committed Jun 9, 2024
1 parent 02a6c79 commit f6bec91
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions full_offline_backup_for_todoist/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ def get_credential(opt_file: Optional[str], opt_direct: Optional[str],
if deprecated_env in environment:
print(f"WARNING: The {deprecated_env} environment variable is no longer necessary")

token = get_credential(args.token_file, args.token, "TODOIST_TOKEN",
"Todoist token (from https://todoist.com/app/settings/integrations/developer)")
token = get_credential(args.token_file, args.token, "TODOIST_TOKEN", "Todoist token" +
"(from https://todoist.com/app/settings/integrations/developer)")
return TodoistAuth(token)

def handle_download(self, args: argparse.Namespace, environment: Mapping[str, str]) -> None:
Expand Down
3 changes: 2 additions & 1 deletion tests/test_backup_attachments_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
import io
import csv
import json
from full_offline_backup_for_todoist.backup_attachments_downloader import TodoistBackupAttachmentsDownloader
from full_offline_backup_for_todoist.backup_attachments_downloader import (
TodoistBackupAttachmentsDownloader)
from full_offline_backup_for_todoist.tracer import NullTracer
from .test_util_memory_vfs import InMemoryVfs

Expand Down
2 changes: 1 addition & 1 deletion tests/test_url_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import unittest
import time
from unittest.mock import patch
from .test_util_static_http_request_handler import TestStaticHTTPServer
from full_offline_backup_for_todoist.url_downloader import URLLibURLDownloader
from full_offline_backup_for_todoist.tracer import NullTracer
from .test_util_static_http_request_handler import TestStaticHTTPServer

@patch.object(time, 'sleep', lambda secs: None) # For faster tests
class TestFrontend(unittest.TestCase):
Expand Down

0 comments on commit f6bec91

Please sign in to comment.