Skip to content

Commit c5b2d05

Browse files
committed
fix failed tests
1 parent db71a28 commit c5b2d05

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/conftest.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,3 @@ async def asyncpg_pool(sa_engine):
4646
await yield_(rv)
4747
await rv.execute('DELETE FROM gino_user_settings')
4848
await rv.execute('DELETE FROM gino_users')
49-
50-
51-
pytest.fixture(random_name)

tests/models.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
import string
55
from datetime import datetime
66

7+
import pytest
8+
79
from gino import Gino
810
from gino.dialects.asyncpg import JSONB
911

@@ -19,6 +21,7 @@
1921
db = Gino()
2022

2123

24+
@pytest.fixture
2225
def random_name(length=8) -> str:
2326
return ''.join(random.choice(string.ascii_letters) for _ in range(length))
2427

0 commit comments

Comments
 (0)