play dynamodb

https://img.shields.io/pypi/v/play_dynamodb.svg https://img.shields.io/travis/tierratelematics/play_dynamodb.svg Documentation Status https://codecov.io/gh/tierratelematics/play_dynamodb/branch/develop/graph/badge.svg

pytest-play support for AWS DynamoDB queries and assertions

More info and examples on:

Features

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'',
 'parameters': {
     'Key': {
         'Artist': {
             'S': 'Acme Band',
             },
         'SongTitle': {
             'S': 'Happy Day',
             },
         },
     'TableName': 'Music',
     }
}

Supported methods:

  • batch_get_item
  • batch_write_item
  • delete_item
  • describe_table
  • get_item
  • list_tables
  • put_item
  • query
  • scan
  • update_item

Twitter

pytest-play tweets happens here:

Credits

This package was created with Cookiecutter and the cookiecutter-play-plugin (based on audreyr/cookiecutter-pypackage project template).