No project description provided
Project description
NHS AWS Helpers
some useful boto3 utilities
quick start
contributing
contributors see contributing
installing
pip install nhs-aws-helpers
testing
the library comes with a some pytest fixtures ... nhs_aws_helpers/fixtures.py
# conftest.py
# noinspection PyUnresolvedReferences
from nhs_aws_helpers.fixtures import * # noqa: F403
# mytest.py
import pytest
from mypy_boto3_dynamodb.service_resource import Table
@pytest.fixture(scope="function", name="my_temp_ddb_table")
def my_temp_table_fixture() -> Table:
yield from temp_dynamodb_table("my-source-table-to-clone")
def my_test(my_temp_ddb_table: Table):
# do things with table
print(my_temp_ddb_table.table_name)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nhs_aws_helpers-0.6.2.tar.gz
(40.2 kB
view hashes)
Built Distribution
Close
Hashes for nhs_aws_helpers-0.6.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68c880839780f374fdcc8c3d9b79be907c57fa7d5765030d3c0d4bd50d4c025e |
|
MD5 | 4808707b8a79d182e381f209661cb642 |
|
BLAKE2b-256 | afd7b8684018c53b5ef36b857d8e95d55585f2b809f9fe57988c53b30248bfb9 |