ClearcodeHQ / pytest-dynamodb

This is a pytest plugin, that enables you to test your code that relies on a running DynamoDB Database. It allows you to specify fixtures for DynamoDB process and client (resource in AWS boto terms).
https://pypi.python.org/pypi/pytest-dynamodb/
GNU Lesser General Public License v3.0
20 stars 6 forks source link

Ability to connect to local dynamodb maintained outside of test fixtures. #813

Open fizyk opened 2 years ago

fizyk commented 2 years ago

https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.DownloadingAndRunning.html there's a docker image maintained we could use for tests to connect to.

rafrafek commented 1 year ago

It would be great to have this option! Do you think it requires a lot of work to be done? Can one help somehow?

fizyk commented 1 year ago

Not that much. Take a look on how the pytest-postgresql does it: https://github.com/ClearcodeHQ/pytest-postgresql/blob/main/pytest_postgresql/factories/noprocess.py