Skip to content

Commit b89c5cf

Browse files
committed
fixed failing tests
1 parent 7017b96 commit b89c5cf

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

tests/test_pagination/seed.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ def seed_100_users(app: App):
2020

2121
session = db_service.session_factory()
2222

23-
if session.get_bind().dialect.is_async:
24-
execute_coroutine_with_sync_worker(db_service.create_all_async())
25-
else:
26-
db_service.create_all()
23+
db_service.create_all()
2724

2825
for i in range(100):
2926
session.add(user_model(name=f"User Number {i+1}"))

tests/test_query/test_utils.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@ def _seed_model(app: App):
2828

2929
session = db_service.session_factory()
3030

31-
if session.get_bind().dialect.is_async:
32-
execute_coroutine_with_sync_worker(db_service.create_all_async())
33-
else:
34-
db_service.create_all()
31+
db_service.create_all()
3532

3633
session.add(user_model(name="First User"))
3734
res = session.commit()

0 commit comments

Comments
 (0)