diff --git a/tests/plugins/test_debug.py b/tests/plugins/test_debug.py index 93f2a96..9825e91 100644 --- a/tests/plugins/test_debug.py +++ b/tests/plugins/test_debug.py @@ -1,7 +1,7 @@ -import toddlers.plugins.debug - import fedora_messaging.api +import toddlers.plugins.debug + class TestDebugToddler: def test_accepts_topic(self): diff --git a/tests/plugins/test_flag_ci_pr.py b/tests/plugins/test_flag_ci_pr.py index e54ce21..b8cf489 100644 --- a/tests/plugins/test_flag_ci_pr.py +++ b/tests/plugins/test_flag_ci_pr.py @@ -1,10 +1,10 @@ import logging -from unittest.mock import patch, MagicMock - -import toddlers.plugins.flag_ci_pr -import pytest +from unittest.mock import MagicMock, patch import fedora_messaging.api +import pytest + +import toddlers.plugins.flag_ci_pr class TestFlagCIPRToddler: diff --git a/tests/plugins/test_flag_commit_build.py b/tests/plugins/test_flag_commit_build.py index c6de4d2..735e293 100644 --- a/tests/plugins/test_flag_commit_build.py +++ b/tests/plugins/test_flag_commit_build.py @@ -1,5 +1,5 @@ import logging -from unittest.mock import patch, MagicMock, Mock +from unittest.mock import MagicMock, Mock, patch import fedora_messaging.api import pytest diff --git a/tests/plugins/test_packager_bugzilla_sync.py b/tests/plugins/test_packager_bugzilla_sync.py index 3019b64..84ac134 100644 --- a/tests/plugins/test_packager_bugzilla_sync.py +++ b/tests/plugins/test_packager_bugzilla_sync.py @@ -1,4 +1,4 @@ -from unittest.mock import patch, Mock +from unittest.mock import Mock, patch import pytest diff --git a/tests/test_runner.py b/tests/test_runner.py index 6627fce..0a2a477 100644 --- a/tests/test_runner.py +++ b/tests/test_runner.py @@ -1,5 +1,5 @@ import logging -from unittest.mock import patch, Mock +from unittest.mock import Mock, patch import fedora_messaging.api import fedora_messaging.exceptions diff --git a/tests/utils/test_bugzilla_system.py b/tests/utils/test_bugzilla_system.py index 262c647..4076f34 100644 --- a/tests/utils/test_bugzilla_system.py +++ b/tests/utils/test_bugzilla_system.py @@ -1,6 +1,6 @@ import logging -import xmlrpc.client from unittest.mock import Mock, patch +import xmlrpc.client import pytest diff --git a/toddlers/plugins/packager_bugzilla_sync.py b/toddlers/plugins/packager_bugzilla_sync.py index a59cb54..42df5d5 100644 --- a/toddlers/plugins/packager_bugzilla_sync.py +++ b/toddlers/plugins/packager_bugzilla_sync.py @@ -13,8 +13,8 @@ import logging import sys import requests -import toml from requests.packages.urllib3.util import retry +import toml try: import tqdm @@ -22,8 +22,9 @@ except ImportError: tqdm = None from toddlers.base import ToddlerBase -import toddlers.utils.fedora_account import toddlers.utils.bugzilla_system +import toddlers.utils.fedora_account + _log = logging.getLogger(__name__) diff --git a/toddlers/runner.py b/toddlers/runner.py index 075250b..ede09fb 100644 --- a/toddlers/runner.py +++ b/toddlers/runner.py @@ -1,7 +1,7 @@ import logging -import fedora_messaging.exceptions import fedora_messaging.config +import fedora_messaging.exceptions import toddlers.base import toddlers.plugins diff --git a/toddlers/utils/bugzilla_system.py b/toddlers/utils/bugzilla_system.py index 0ec09a2..212473c 100644 --- a/toddlers/utils/bugzilla_system.py +++ b/toddlers/utils/bugzilla_system.py @@ -1,7 +1,6 @@ import logging -import xmlrpc.client - from typing import Mapping +import xmlrpc.client from bugzilla import Bugzilla diff --git a/toddlers/utils/notify.py b/toddlers/utils/notify.py index d9f8938..0c03d76 100644 --- a/toddlers/utils/notify.py +++ b/toddlers/utils/notify.py @@ -1,5 +1,5 @@ -import smtplib from email.message import EmailMessage +import smtplib def notify_packager(mail_server, admin_email, username, email):