Skip to content

Commit

Permalink
fix: sort tests/* imports
Browse files Browse the repository at this point in the history
  • Loading branch information
gromsterus committed Dec 27, 2023
1 parent 08db08e commit 6c6f724
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 8 deletions.
3 changes: 1 addition & 2 deletions tests/test_cursor_pagination/_ext_sqlalchemy.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from datetime import datetime, timezone
from typing import TYPE_CHECKING, cast

from paginate_any.ext.sqlalchemy import SQLAlchemyCursorPaginator
from sqlalchemy import (
DateTime,
Select,
Expand All @@ -17,8 +18,6 @@
)
from sqlalchemy.orm import DeclarativeBase, InstrumentedAttribute, Mapped, mapped_column

from paginate_any.ext.sqlalchemy import SQLAlchemyCursorPaginator

from ._data_structures import (
LogPaginatorFactory,
utc_now,
Expand Down
1 change: 0 additions & 1 deletion tests/test_cursor_pagination/test_exc.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from contextlib import nullcontext as does_not_raise

import pytest

from paginate_any.exc import check_module_version


Expand Down
1 change: 0 additions & 1 deletion tests/test_cursor_pagination/test_paginations.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import pytest
import pytest_asyncio

from paginate_any.cursor_pagination import InMemoryCursorPaginator
from paginate_any.exc import (
ConfigurationErr,
Expand Down
1 change: 0 additions & 1 deletion tests/test_rest/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import msgspec.json
import pytest

from paginate_any.cursor_pagination import InMemoryCursorPaginator
from paginate_any.rest_api import PaginationConf

Expand Down
3 changes: 1 addition & 2 deletions tests/test_rest/test_fastapi_depend.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@

async def test_fastapi_pagination_depend(fastapi_fab, paginator, store):
from fastapi import Depends, FastAPI
from pydantic import BaseModel, ConfigDict

from paginate_any.ext.fastapi import FastApiCursorPagination, PaginationDependProtocol
from pydantic import BaseModel, ConfigDict

class CarModel(BaseModel):
model_config = ConfigDict(from_attributes=True)
Expand Down
1 change: 0 additions & 1 deletion tests/test_rest/test_rest_implementations.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from typing import TYPE_CHECKING

import pytest

from paginate_any.exc import CursorParamsErr
from paginate_any.rest_api import PaginationConf, set_default_conf

Expand Down

0 comments on commit 6c6f724

Please sign in to comment.