asyncpg icon indicating copy to clipboard operation
asyncpg copied to clipboard

Update documentation to cover testing using pytest

Open slidenerd opened this issue 2 years ago • 1 comments

Please add a section in your documentation on how to test code that uses pool, fetch, executemany etc using pytest. I could not find anything on stackoverflow or issues where is a slight reference somewhere to TempCluster but no examples whatsoever. Are you supposed to mock this library or create an actual database while testing. Would be super helpful for future readers

slidenerd avatar Jun 24 '22 12:06 slidenerd

@slidenerd is referring to THIS COMMENT I think but your documentation has no mention of this anywhere on how to setup tests/temporary instance with a TempCluster. Super appreciate if you can update your documentation with this

Coinhexa avatar Aug 01 '22 03:08 Coinhexa