Skip to content

Commit

Permalink
Use pytest-aioworkers
Browse files Browse the repository at this point in the history
  • Loading branch information
abogushov committed Mar 29, 2019
1 parent 8588e89 commit 598444d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@ def dsn():
return os.environ.get('PG_DSN', 'postgresql://localhost/test')


@pytest.fixture
def context(config, loop):
from aioworkers.core.context import Context
with Context(config, loop=loop) as ctx:
yield ctx


@pytest.fixture
def recreate_table(context):
async def recreate_table(name, *fields):
Expand Down

0 comments on commit 598444d

Please sign in to comment.