From 6f80e4186efb22d97ac0b3bba37a83e7c2d168be Mon Sep 17 00:00:00 2001 From: drew2a Date: Wed, 30 Mar 2022 12:31:59 +0200 Subject: [PATCH] Flake --- .flake8 | 1 + .../libtorrent/restapi/tests/test_torrentinfo_endpoint.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.flake8 b/.flake8 index dcee27eb202..ab5648631cd 100644 --- a/.flake8 +++ b/.flake8 @@ -13,3 +13,4 @@ extend-ignore = E722, # Pylint-checked, do not use bare 'except' E501 # Pylint-checked, line too long import-order-style=pycharm +application_import_names = tribler diff --git a/src/tribler/core/components/libtorrent/restapi/tests/test_torrentinfo_endpoint.py b/src/tribler/core/components/libtorrent/restapi/tests/test_torrentinfo_endpoint.py index ead54184252..bbb5e84e020 100644 --- a/src/tribler/core/components/libtorrent/restapi/tests/test_torrentinfo_endpoint.py +++ b/src/tribler/core/components/libtorrent/restapi/tests/test_torrentinfo_endpoint.py @@ -1,11 +1,11 @@ import json import shutil +from binascii import unhexlify from unittest.mock import MagicMock, patch from urllib.parse import quote_plus, unquote_plus import pytest from aiohttp.web_app import Application -from binascii import unhexlify from ipv8.util import succeed from tribler.core import notifications