pytest-play support for AWS DynamoDB queries and assertions
More info and examples on:
- pytest-play, documentation
- cookiecutter-qa, see
pytest-playin action with a working example if you want to start hacking
This project defines new pytest-play commands for AWS DynamoDB:
- type: dynamodb
provider: play_dynamodb
method: get_item
connection:
region_name: us-west-2
endpoint_url: http://localhost:8000
variable: item
variable_expression: response
assertion: item['Item']['AlbumTitle']['S'] == 'Songs About Life'
TableName: Music
parameters:
Key:
Artist:
S: Acme Band
SongTitle:
S: Happy Day
Supported methods:
- batch_get_item
- batch_write_item
- delete_item
- get_item
- put_item
- query
- scan
- update_item
pytest-play tweets happens here:
This package was created with Cookiecutter and the cookiecutter-play-plugin (based on audreyr/cookiecutter-pypackage project template).