Skip to content

Commit

Permalink
fixtures with params for pool
Browse files Browse the repository at this point in the history
  • Loading branch information
jettify committed Sep 29, 2015
1 parent 737a8f4 commit 15abf63
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def test_create_pool2(loop, pool_maker, dsn):
assert 10 == pool.freesize


@pytest.mark.parametrize("dsn", pytest.dsn_list)
def test_acquire(loop, pool):
@asyncio.coroutine
def go():
Expand Down Expand Up @@ -438,6 +439,7 @@ def go():
loop.run_until_complete(go())


@pytest.mark.parametrize("dsn", pytest.dsn_list)
def test_pool_with_executor(loop, pool_maker, dsn, executor):
pool = pool_maker(loop, executor=executor, dsn=dsn, minsize=2, maxsize=2)

Expand Down

0 comments on commit 15abf63

Please sign in to comment.