diff --git a/tests/test_core/test_core_coretools.py b/tests/test_core/test_core_coretools.py
index 108c98a2..04aae086 100644
--- a/tests/test_core/test_core_coretools.py
+++ b/tests/test_core/test_core_coretools.py
@@ -19,11 +19,11 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see .
"""
-from pathlib import Path
import uuid
import pytest
from shutil import copyfile
+from pathlib import Path
from zipfile import ZipFile
from mocked import causeOSError
diff --git a/tests/test_gui/test_gui_projtree.py b/tests/test_gui/test_gui_projtree.py
index 3a249f25..36dbbaa3 100644
--- a/tests/test_gui/test_gui_projtree.py
+++ b/tests/test_gui/test_gui_projtree.py
@@ -22,15 +22,15 @@ along with this program. If not, see .
from pathlib import Path
import pytest
-from mocked import causeOSError
-from novelwriter.guimain import GuiMain
from tools import C, buildTestProject
+from mocked import causeOSError
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QMessageBox, QMenu, QTreeWidgetItem, QDialog
from novelwriter import CONFIG
from novelwriter.enum import nwItemLayout, nwItemType, nwItemClass
+from novelwriter.guimain import GuiMain
from novelwriter.gui.projtree import GuiProjectTree
from novelwriter.dialogs.docmerge import GuiDocMerge
from novelwriter.dialogs.docsplit import GuiDocSplit