schireson / pytest-mock-resources

Pytest Fixtures that let you actually test against external resource (Postgres, Mongo, Redshift...) dependent code.
https://pytest-mock-resources.readthedocs.io/en/latest/quickstart.html
MIT License
179 stars 19 forks source link

Add support for async engines (postgres) #107

Closed michaelbukachi closed 3 years ago

michaelbukachi commented 3 years ago

This closes #105

michaelbukachi commented 3 years ago

@DanCardin It's ready for review. One thing I've noticed is that using yield in an async context produces an async_generator which doesn't the same methods as a normal generator, thus the use of async for ... syntax.

michaelbukachi commented 3 years ago

@DanCardin I've moved the for loop syntax inside manage_async.