Skip to main content

pytest-play support for AWS DynamoDB queries and assertions

Project description

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'",
 "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

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).

CHANGES

0.0.1 (2018-01-31)

  • First release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

play_dynamodb-0.0.1.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

play_dynamodb-0.0.1-py2.py3-none-any.whl (5.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file play_dynamodb-0.0.1.tar.gz.

File metadata

File hashes

Hashes for play_dynamodb-0.0.1.tar.gz
Algorithm Hash digest
SHA256 45da593af8e9cd93789b0ed1a90da7744414bcaafc821484eb0bdb648f03599b
MD5 96a0cd5f0327e814ad2c612b51681792
BLAKE2b-256 7a51c8165d66224361ab9a74f60aab14dba498b68d444c2a26196e2edc2ff747

See more details on using hashes here.

Provenance

File details

Details for the file play_dynamodb-0.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for play_dynamodb-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 334b7f8b0972cd376867a4dadeb95119921b5f79fb1279059a86dd0d25aaca3d
MD5 57966c5bbdff6c1b8f8db5b4bbe327c8
BLAKE2b-256 394d57e979ef635894fb0e716cfb6c77017b8c5c2419ea0c1844564a65a76164

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page