From 2eff6f0bd75c9959b7b899d169164343cd0377c9 Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Thu, 14 Nov 2024 15:47:52 +0100 Subject: backend/lint: Fix import formatting --- tests/api/test_archive.py | 7 ++++--- tests/api/test_artist.py | 1 + tests/api/test_character.py | 1 + tests/api/test_circle.py | 1 + tests/api/test_comic.py | 1 + tests/api/test_comic_tag.py | 1 + tests/api/test_db.py | 15 ++++++++------- tests/api/test_filter.py | 1 + tests/api/test_image.py | 1 + tests/api/test_namespace.py | 1 + tests/api/test_page.py | 1 + tests/api/test_scraper_api.py | 5 +++-- tests/api/test_sort.py | 1 + tests/api/test_tag.py | 1 + tests/api/test_world.py | 1 + 15 files changed, 27 insertions(+), 12 deletions(-) (limited to 'tests/api') diff --git a/tests/api/test_archive.py b/tests/api/test_archive.py index 0ef3425..6e6d0b7 100644 --- a/tests/api/test_archive.py +++ b/tests/api/test_archive.py @@ -2,13 +2,14 @@ import os from datetime import datetime as dt from pathlib import Path +import pytest +from conftest import DB, Response +from sqlalchemy import select + import hircine.config import hircine.db as database import hircine.thumbnailer as thumb -import pytest -from conftest import DB, Response from hircine.db.models import Archive, Comic, Image, Page -from sqlalchemy import select @pytest.fixture diff --git a/tests/api/test_artist.py b/tests/api/test_artist.py index 8cb2f1a..fa58012 100644 --- a/tests/api/test_artist.py +++ b/tests/api/test_artist.py @@ -3,6 +3,7 @@ from datetime import timezone import pytest from conftest import DB, Response + from hircine.db.models import Artist diff --git a/tests/api/test_character.py b/tests/api/test_character.py index 567d2a4..3737d49 100644 --- a/tests/api/test_character.py +++ b/tests/api/test_character.py @@ -3,6 +3,7 @@ from datetime import timezone import pytest from conftest import DB, Response + from hircine.db.models import Character diff --git a/tests/api/test_circle.py b/tests/api/test_circle.py index a03ba89..bea46d7 100644 --- a/tests/api/test_circle.py +++ b/tests/api/test_circle.py @@ -3,6 +3,7 @@ from datetime import timezone import pytest from conftest import DB, Response + from hircine.db.models import Circle diff --git a/tests/api/test_comic.py b/tests/api/test_comic.py index d3fa51e..a6c4c30 100644 --- a/tests/api/test_comic.py +++ b/tests/api/test_comic.py @@ -3,6 +3,7 @@ from datetime import datetime as dt import pytest from conftest import DB, Response + from hircine.db.models import ( Artist, Circle, diff --git a/tests/api/test_comic_tag.py b/tests/api/test_comic_tag.py index f536b79..d0878e2 100644 --- a/tests/api/test_comic_tag.py +++ b/tests/api/test_comic_tag.py @@ -2,6 +2,7 @@ from functools import partial import pytest from conftest import DB, Response + from hircine.db.models import Namespace, Tag diff --git a/tests/api/test_db.py b/tests/api/test_db.py index f53b90f..1405c23 100644 --- a/tests/api/test_db.py +++ b/tests/api/test_db.py @@ -1,10 +1,16 @@ from datetime import datetime, timedelta, timezone +import pytest +from conftest import DB +from sqlalchemy.exc import StatementError +from sqlalchemy.orm import ( + Mapped, + mapped_column, +) + import hircine.db as database import hircine.db.models as models import hircine.db.ops as ops -import pytest -from conftest import DB from hircine.db.models import ( Artist, Base, @@ -16,11 +22,6 @@ from hircine.db.models import ( Tag, TagNamespaces, ) -from sqlalchemy.exc import StatementError -from sqlalchemy.orm import ( - Mapped, - mapped_column, -) class Date(MixinID, Base): diff --git a/tests/api/test_filter.py b/tests/api/test_filter.py index 67a953f..1438785 100644 --- a/tests/api/test_filter.py +++ b/tests/api/test_filter.py @@ -1,5 +1,6 @@ import pytest from conftest import DB, Response + from hircine.db.models import Namespace, Tag diff --git a/tests/api/test_image.py b/tests/api/test_image.py index c8c26b3..e0e9251 100644 --- a/tests/api/test_image.py +++ b/tests/api/test_image.py @@ -1,5 +1,6 @@ import pytest from conftest import DB + from hircine.api.types import Image diff --git a/tests/api/test_namespace.py b/tests/api/test_namespace.py index 450075b..2ffc118 100644 --- a/tests/api/test_namespace.py +++ b/tests/api/test_namespace.py @@ -3,6 +3,7 @@ from datetime import timezone import pytest from conftest import DB, Response + from hircine.db.models import Namespace diff --git a/tests/api/test_page.py b/tests/api/test_page.py index debd69a..cb06e3e 100644 --- a/tests/api/test_page.py +++ b/tests/api/test_page.py @@ -2,6 +2,7 @@ from datetime import datetime, timezone import pytest from conftest import DB + from hircine.api.types import Page from hircine.db.models import Archive diff --git a/tests/api/test_scraper_api.py b/tests/api/test_scraper_api.py index 1edd74f..b917e39 100644 --- a/tests/api/test_scraper_api.py +++ b/tests/api/test_scraper_api.py @@ -1,8 +1,9 @@ +import pytest +from conftest import DB, Response + import hircine.enums as enums import hircine.plugins import hircine.scraper.types as scraped -import pytest -from conftest import DB, Response from hircine.scraper import ScrapeError, Scraper, ScrapeWarning diff --git a/tests/api/test_sort.py b/tests/api/test_sort.py index b3c8562..9cafe82 100644 --- a/tests/api/test_sort.py +++ b/tests/api/test_sort.py @@ -1,5 +1,6 @@ import pytest from conftest import DB, Response + from hircine.db.models import Namespace diff --git a/tests/api/test_tag.py b/tests/api/test_tag.py index c863a00..7970f3d 100644 --- a/tests/api/test_tag.py +++ b/tests/api/test_tag.py @@ -3,6 +3,7 @@ from datetime import timezone import pytest from conftest import DB, Response + from hircine.db.models import Namespace, Tag diff --git a/tests/api/test_world.py b/tests/api/test_world.py index a3926d1..3546c2c 100644 --- a/tests/api/test_world.py +++ b/tests/api/test_world.py @@ -3,6 +3,7 @@ from datetime import timezone import pytest from conftest import DB, Response + from hircine.db.models import World -- cgit v1.2.3-2-gb3c3