Skip to content

Commit

Permalink
More testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
eerimoq committed Jul 8, 2019
1 parent 275bd83 commit 3bb13fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_asyncbg.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ def test_pool(self):
async def pool(self):
pool = asyncbg.Pool()

def work(value):
return value
def work(value_1, value_2=1):
return value_1 * value_2

for i in range(10):
self.assertEqual(await pool.call(work, i), i)
self.assertEqual(await pool.call(work, i, value_2=i), i * i)


if __name__ == '__main__':
Expand Down

0 comments on commit 3bb13fd

Please sign in to comment.