Skip to content

Commit

Permalink
Merge c5b2d05 into a05c82a
Browse files Browse the repository at this point in the history
  • Loading branch information
pyup-bot committed Aug 19, 2018
2 parents a05c82a + c5b2d05 commit dcbaa31
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion requirements_dev.txt
Expand Up @@ -15,7 +15,7 @@ quart==0.6.5;python_version>="3.6"
coverage==4.5.1
flake8==3.5.0
tox==3.2.1
pytest==3.6.4
pytest==3.7.2
pytest-runner==4.2
pytest-asyncio==0.9.0
pytest-tornado==0.5.0
Expand Down
3 changes: 0 additions & 3 deletions tests/conftest.py
Expand Up @@ -46,6 +46,3 @@ async def asyncpg_pool(sa_engine):
await yield_(rv)
await rv.execute('DELETE FROM gino_user_settings')
await rv.execute('DELETE FROM gino_users')


pytest.fixture(random_name)
3 changes: 3 additions & 0 deletions tests/models.py
Expand Up @@ -4,6 +4,8 @@
import string
from datetime import datetime

import pytest

from gino import Gino
from gino.dialects.asyncpg import JSONB

Expand All @@ -19,6 +21,7 @@
db = Gino()


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

Expand Down

0 comments on commit dcbaa31

Please sign in to comment.