From f2457ebd4fcef52c27418ed7e0f55a4fb1e751c1 Mon Sep 17 00:00:00 2001 From: sezanzeb <28510156+sezanzeb@users.noreply.github.com> Date: Wed, 2 Oct 2024 01:39:19 +0200 Subject: [PATCH] minor cleanup stuff --- tests/integration/test_daemon.py | 7 ++++--- tests/unit/test_data_manager.py | 1 + .../test_event_pipeline/test_axis_transformation.py | 3 ++- tests/unit/test_event_pipeline/test_event_pipeline.py | 1 + tests/unit/test_global_uinputs.py | 10 +++++----- tests/unit/test_ipc.py | 1 + tests/unit/test_test.py | 1 + 7 files changed, 15 insertions(+), 9 deletions(-) diff --git a/tests/integration/test_daemon.py b/tests/integration/test_daemon.py index 796840367..cf8e4e669 100644 --- a/tests/integration/test_daemon.py +++ b/tests/integration/test_daemon.py @@ -17,15 +17,16 @@ # # You should have received a copy of the GNU General Public License # along with input-remapper. If not, see . -from tests.lib.test_setup import is_service_running -import os import multiprocessing -import unittest +import os import time +import unittest import gi +from tests.lib.test_setup import is_service_running + gi.require_version("Gtk", "3.0") from gi.repository import Gtk diff --git a/tests/unit/test_data_manager.py b/tests/unit/test_data_manager.py index 1a4be4dfc..18c5873b3 100644 --- a/tests/unit/test_data_manager.py +++ b/tests/unit/test_data_manager.py @@ -17,6 +17,7 @@ # # You should have received a copy of the GNU General Public License # along with input-remapper. If not, see . + import os import time import unittest diff --git a/tests/unit/test_event_pipeline/test_axis_transformation.py b/tests/unit/test_event_pipeline/test_axis_transformation.py index 180174369..08867df64 100644 --- a/tests/unit/test_event_pipeline/test_axis_transformation.py +++ b/tests/unit/test_event_pipeline/test_axis_transformation.py @@ -17,10 +17,11 @@ # # You should have received a copy of the GNU General Public License # along with input-remapper. If not, see . + import dataclasses import functools -import unittest import itertools +import unittest from typing import Iterable, List from inputremapper.injection.mapping_handlers.axis_transform import Transformation diff --git a/tests/unit/test_event_pipeline/test_event_pipeline.py b/tests/unit/test_event_pipeline/test_event_pipeline.py index db7583793..97271993c 100644 --- a/tests/unit/test_event_pipeline/test_event_pipeline.py +++ b/tests/unit/test_event_pipeline/test_event_pipeline.py @@ -17,6 +17,7 @@ # # You should have received a copy of the GNU General Public License # along with input-remapper. If not, see . + import asyncio import unittest from typing import Iterable diff --git a/tests/unit/test_global_uinputs.py b/tests/unit/test_global_uinputs.py index 817f9fc9c..458b8c1a7 100644 --- a/tests/unit/test_global_uinputs.py +++ b/tests/unit/test_global_uinputs.py @@ -17,25 +17,25 @@ # # You should have received a copy of the GNU General Public License # along with input-remapper. If not, see . -from inputremapper.input_event import InputEvent -from tests.lib.cleanup import cleanup import sys import unittest -import evdev - from unittest.mock import patch + +import evdev from evdev.ecodes import ( KEY_A, ABS_X, ) +from inputremapper.exceptions import EventNotHandled, UinputNotAvailable from inputremapper.injection.global_uinputs import ( global_uinputs, FrontendUInput, GlobalUInputs, ) -from inputremapper.exceptions import EventNotHandled, UinputNotAvailable +from inputremapper.input_event import InputEvent +from tests.lib.cleanup import cleanup from tests.lib.test_setup import test_setup diff --git a/tests/unit/test_ipc.py b/tests/unit/test_ipc.py index c2fb90f8f..70fc47188 100644 --- a/tests/unit/test_ipc.py +++ b/tests/unit/test_ipc.py @@ -17,6 +17,7 @@ # # You should have received a copy of the GNU General Public License # along with input-remapper. If not, see . + import asyncio import multiprocessing import os diff --git a/tests/unit/test_test.py b/tests/unit/test_test.py index 92a813b81..913eb1912 100644 --- a/tests/unit/test_test.py +++ b/tests/unit/test_test.py @@ -17,6 +17,7 @@ # # You should have received a copy of the GNU General Public License # along with input-remapper. If not, see . + import asyncio import multiprocessing import os