Ejemplo n.º 1
0
"""Tests main conftest file."""
from pytest_dynamodb import factories

# pylint:disable=invalid-name
dynamodb_same = factories.dynamodb("dynamodb_proc")
dynamodb_diff = factories.dynamodb(
    "dynamodb_proc", access_key="denied_key", secret_key="public_key"
)
# pylint:enable=invalid-name
Ejemplo n.º 2
0
"""Tests main conftest file."""
import sys
import warnings

from pytest_dynamodb import factories

if not sys.version_info >= (3, 5):
    warnings.simplefilter("error", category=DeprecationWarning)


# pylint:disable=invalid-name
dynamodb_same = factories.dynamodb('dynamodb_proc')
dynamodb_diff = factories.dynamodb(
    'dynamodb_proc', access_key='denied_key', secret_key='public_key'
)
# pylint:enable=invalid-name
Ejemplo n.º 3
0
        dest='dynamodb_aws_region',
        help=_help_aws_region,
    )

    parser.addoption('--dynamodb-dir',
                     action='store',
                     metavar='path',
                     dest='dynamodb_dir',
                     help=_help_dir)

    parser.addoption(
        '--dynamodb-host',
        action='store',
        dest='dynamodb_host',
        help=_help_host,
    )

    parser.addoption('--dynamodb-port',
                     action='store',
                     dest='dynamodb_port',
                     help=_help_port)

    parser.addoption('--dynamodb-delay',
                     action='store',
                     dest='dynamodb_delay',
                     help=_help_delay)


dynamodb_proc = factories.dynamodb_proc()
dynamodb = factories.dynamodb('dynamodb_proc')
Ejemplo n.º 4
0
    parser.addoption(
        "--dynamodb-dir",
        action="store",
        metavar="path",
        dest="dynamodb_dir",
        help=_help_dir,
    )

    parser.addoption(
        "--dynamodb-host",
        action="store",
        dest="dynamodb_host",
        help=_help_host,
    )

    parser.addoption("--dynamodb-port",
                     action="store",
                     dest="dynamodb_port",
                     help=_help_port)

    parser.addoption(
        "--dynamodb-delay",
        action="store",
        dest="dynamodb_delay",
        help=_help_delay,
    )


dynamodb_proc = factories.dynamodb_proc()
dynamodb = factories.dynamodb("dynamodb_proc")