We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db71a28 commit c5b2d05Copy full SHA for c5b2d05
tests/conftest.py
@@ -46,6 +46,3 @@ async def asyncpg_pool(sa_engine):
46
await yield_(rv)
47
await rv.execute('DELETE FROM gino_user_settings')
48
await rv.execute('DELETE FROM gino_users')
49
-
50
51
-pytest.fixture(random_name)
tests/models.py
@@ -4,6 +4,8 @@
4
import string
5
from datetime import datetime
6
7
+import pytest
8
+
9
from gino import Gino
10
from gino.dialects.asyncpg import JSONB
11
@@ -19,6 +21,7 @@
19
21
db = Gino()
20
22
23
24
+@pytest.fixture
25
def random_name(length=8) -> str:
26
return ''.join(random.choice(string.ascii_letters) for _ in range(length))
27
0 commit comments