Skip to content

Commit 1d4a335

Browse files
authored
chore: remove duplicate test - DIA-51295 (#77)
1 parent e02a63e commit 1d4a335

2 files changed

Lines changed: 1 addition & 21 deletions

File tree

tests/pagination/test_pagination.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,6 @@ def test_pagination(
2020
assert result.meta.page_number == page_number
2121

2222

23-
@mark.sqlalchemy("1.3")
24-
@mark.parametrize(
25-
"offset,limit,total_pages,page_number",
26-
[(0, 5, 9, 1), (10, 10, 5, 2), (40, 10, 5, 5)],
27-
)
28-
def test_pagination_with_legacy_query_count(
29-
session, user_cls, offset, limit, total_pages, page_number, nb_users
30-
):
31-
from fastapi_sqla import Paginate
32-
33-
query = session.query(user_cls).options(joinedload(user_cls.notes))
34-
result = Paginate(session, offset, limit)(query)
35-
36-
assert result.meta.total_items == nb_users
37-
assert result.meta.offset == offset
38-
assert result.meta.total_pages == total_pages
39-
assert result.meta.page_number == page_number
40-
41-
4223
@mark.parametrize(
4324
"offset,items_number,path",
4425
[

tests/test_pytest_plugin.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ async def test_async_session_fixture_does_not_write_in_db(
5757

5858

5959
@mark.sqlalchemy("1.4")
60-
def test_sqla_14_all_opened_sessions_are_within_the_same_transaction(
60+
def test_all_opened_sessions_are_within_the_same_transaction(
6161
sqla_connection, session, singer_cls
6262
):
6363
from fastapi_sqla.sqla import _Session
@@ -70,7 +70,6 @@ def test_sqla_14_all_opened_sessions_are_within_the_same_transaction(
7070
assert other_session.get(singer_cls, 1)
7171

7272

73-
@mark.sqlalchemy("1.3")
7473
def test_sqla_13_all_opened_sessions_are_within_the_same_transaction(
7574
sqla_connection, session, singer_cls
7675
):

0 commit comments

Comments
 (0)