{ "info": { "author": "Clearcode - The A Room", "author_email": "thearoom@clearcode.cc", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "pytest-dynamodb\n===============\n\n.. image:: https://img.shields.io/pypi/v/pytest-dynamodb.svg\n :target: https://pypi.python.org/pypi/pytest-dynamodb/\n :alt: Latest PyPI version\n\n.. image:: https://img.shields.io/pypi/wheel/pytest-dynamodb.svg\n :target: https://pypi.python.org/pypi/pytest-dynamodb/\n :alt: Wheel Status\n\n.. image:: https://img.shields.io/pypi/pyversions/pytest-dynamodb.svg\n :target: https://pypi.python.org/pypi/pytest-dynamodb/\n :alt: Supported Python Versions\n\n.. image:: https://img.shields.io/pypi/l/pytest-dynamodb.svg\n :target: https://pypi.python.org/pypi/pytest-dynamodb/\n :alt: License\n\nPackage status\n--------------\n\n.. image:: https://travis-ci.org/ClearcodeHQ/pytest-dynamodb.svg?branch=v1.2.0\n :target: https://travis-ci.org/ClearcodeHQ/pytest-dynamodb\n :alt: Tests\n\n.. image:: https://coveralls.io/repos/ClearcodeHQ/pytest-dynamodb/badge.png?branch=v1.2.0\n :target: https://coveralls.io/r/ClearcodeHQ/pytest-dynamodb?branch=v1.2.0\n :alt: Coverage Status\n\n.. image:: https://requires.io/github/ClearcodeHQ/pytest-dynamodb/requirements.svg?tag=v1.2.0\n :target: https://requires.io/github/ClearcodeHQ/pytest-dynamodb/requirements/?tag=v1.2.0\n :alt: Requirements Status\n\nWhat is this?\n=============\n\nThis is a pytest plugin, that enables you to test your code that relies on a running DynamoDB Database.\nIt allows you to specify fixtures for DynamoDB process and client (resource in AWS boto terms).\n\n\nHow to use\n==========\n\n.. warning::\n\n Please download the `DynamoDB database locally `_.\n\nPlugin contains two fixtures\n\n* **dynamodb** - it's a client/resource fixture that has functional scope. After each test it drops tables in DynamoDB.\n* **dynamodb_proc** - session scoped fixture, that starts DynamoDB instance at it's first use and stops at the end of the tests.\n\nSimply include one of these fixtures into your tests fixture list.\n\nYou can also create additional dynamodb client and process fixtures if you'd need to:\n\n\n.. code-block:: python\n\n from pytest_dynamodb import factories\n\n dynamodb_my_proc = factories.dynamodb_proc(\n port=None, logsdir='/tmp', delay=True)\n dynamodb_my = factories.dynamodb('dynamodb_my_proc')\n\n.. note::\n\n Each DynamoDB process fixture can be configured in a different way than the others through the fixture factory arguments.\n\n\nConfiguration\n=============\n\nYou can define your settings in three ways, it's fixture factory argument, command line option and pytest.ini configuration option.\nYou can pick which you prefer, but remember that these settings are handled in the following order:\n\n * ``Fixture factory argument``\n * ``Command line option``\n * ``Configuration option in your pytest.ini file``\n\n+------------------------------------------------------------------------------------------------------------+--------------------------+---------------------------+-------------------------+---------------+\n| DynamoDB option | Fixture factory argument | Command line option | pytest.ini option | Default |\n+============================================================================================================+==========================+===========================+=========================+===============+\n| Path to dynamodb jar file | dynamodb_dir | --dynamodb-dir | dynamodb_dir | /tmp/dynamodb |\n+------------------------------------------------------------------------------------------------------------+--------------------------+---------------------------+-------------------------+---------------+\n| host | host | --dynamodb-host | dynamodb_host | 127.0.0.1 |\n+------------------------------------------------------------------------------------------------------------+--------------------------+---------------------------+-------------------------+---------------+\n| port | port | --dynamodb-port | dynamodb_port | random |\n+------------------------------------------------------------------------------------------------------------+--------------------------+---------------------------+-------------------------+---------------+\n| AWS Access Key | access_key | --dynamodb-aws_access_key | dynamodb_aws_access_key | access_key |\n+------------------------------------------------------------------------------------------------------------+--------------------------+---------------------------+-------------------------+---------------+\n| AWS Secret Key | secret_key | --dynamodb-aws_secret_key | dynamodb_aws_secret_key | secret_key |\n+------------------------------------------------------------------------------------------------------------+--------------------------+---------------------------+-------------------------+---------------+\n| AWS Region | region | --dynamodb-aws_region | dynamodb_aws_region | us-west-1 |\n+------------------------------------------------------------------------------------------------------------+--------------------------+---------------------------+-------------------------+---------------+\n| `Introduce delays `_ | delay | --dynamodb-delay | dynamodb_delay | false |\n+------------------------------------------------------------------------------------------------------------+--------------------------+---------------------------+-------------------------+---------------+\n\n\nExample usage:\n\n* pass it as an argument in your own fixture\n\n .. code-block:: python\n\n dynamodb_proc = factories.dynamodb_proc(\n port=8888)\n\n* use ``--dynamodb-port`` command line option when you run your tests\n\n .. code-block::\n\n py.test tests --dynamodb-port=8888\n\n\n* specify your port as ``dynamodb_port`` in your ``pytest.ini`` file.\n\n To do so, put a line like the following under the ``[pytest]`` section of your ``pytest.ini``:\n\n .. code-block:: ini\n\n [pytest]\n dynamodb_port = 8888\n\nPackage resources\n-----------------\n\n* Bug tracker: https://github.com/ClearcodeHQ/pytest-dynamodb/issues\n\n\nCHANGELOG\n=========\n\n1.2.0\n-------\n\n- [enhancement] ability to configure aws region and credentials,\n\n .. note::\n\n apparently local dynamo operates on these so whatever you'll set when creating table,\n is whatever is required when accessing the table\n\n1.1.1\n-------\n\n- [enhancement] removed path.py dependency\n\n1.1.0\n-------\n\n- [enhancement] change deprecated getfuncargvalaue to getfixturevalues, require at least pytest 3.0.0\n\n1.0.1\n-------\n\n- [enhancements] set executor timeout to 60. By default mirakuru waits indefinitely, which might cause test hangs\n\n1.0.0\n-------\n\n- create command line and pytest.ini configuration options for introducing delays\n- create command line and pytest.ini configuration options for dynamodb_dir\n- create command line and pytest.ini configuration options for host\n- create command line and pytest.ini configuration options for port\n- Extracted code from pytest-dbfixtures\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ClearcodeHQ/pytest-dynamodb", "keywords": "tests py.test pytest fixture dynamodb", "license": "LGPLv3", "maintainer": "", "maintainer_email": "", "name": "pytest-dynamodb", "package_url": "https://pypi.org/project/pytest-dynamodb/", "platform": "", "project_url": "https://pypi.org/project/pytest-dynamodb/", "project_urls": { "Homepage": "https://github.com/ClearcodeHQ/pytest-dynamodb" }, "release_url": "https://pypi.org/project/pytest-dynamodb/1.2.0/", "requires_dist": [ "pytest (>=3.0.0)", "boto3", "mirakuru", "port-for", "sphinx; extra == 'docs'", "pytest-cov (==2.5.1); extra == 'tests'", "pytest-xdist (==1.18.1); extra == 'tests'" ], "requires_python": "", "summary": "DynamoDB fixtures for pytest", "version": "1.2.0" }, "last_serial": 3031583, "releases": { "0.0.0": [], "1.0.0": [ { "comment_text": "", "digests": { "md5": "34af004b4b1e874f4ffc356106f728a3", "sha256": "9992dca646437a06995d3c969aec70e01a83ba187a33ef4174d4b93bd1fa03e2" }, "downloads": -1, "filename": "pytest_dynamodb-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "34af004b4b1e874f4ffc356106f728a3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11164, "upload_time": "2016-10-28T20:36:13", "url": "https://files.pythonhosted.org/packages/04/b3/2efbe0daa71b019dc683c88d7ab6b88332145dac4d46382c6d52e2aba5e6/pytest_dynamodb-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e149cdfa38cca671459a19a8f62e5b6c", "sha256": "722f3795b141454fd48262d0fdc36eea8b7699ff64c18ce8f72d9959d0449e83" }, "downloads": -1, "filename": "pytest-dynamodb-1.0.0.tar.gz", "has_sig": false, "md5_digest": "e149cdfa38cca671459a19a8f62e5b6c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13601, "upload_time": "2016-10-28T20:36:15", "url": "https://files.pythonhosted.org/packages/d0/1d/36b843d27f8d389a172d4e782a6a44db18515e82f73ccd779e09ab036bb8/pytest-dynamodb-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "e730fc73569a490f0fd140f4f241939c", "sha256": "350205635d23f6a1e640dc243ca9effe14cca2f96497dbbe4c3f4831f2fc1a10" }, "downloads": -1, "filename": "pytest_dynamodb-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e730fc73569a490f0fd140f4f241939c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11355, "upload_time": "2016-11-07T22:39:49", "url": "https://files.pythonhosted.org/packages/62/df/bbb4f5a12f9d72eee6a5b57bf72601f20f7f709326a248fbad050c0164bd/pytest_dynamodb-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f6ca3d02ba3026f5cbd74da9fd378f88", "sha256": "7ef967d76f4b0e00c04b0638cc828cd22aca17eb5f2f833acd18ca36bf0c5ea5" }, "downloads": -1, "filename": "pytest-dynamodb-1.0.1.tar.gz", "has_sig": false, "md5_digest": "f6ca3d02ba3026f5cbd74da9fd378f88", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7851, "upload_time": "2016-11-07T22:39:52", "url": "https://files.pythonhosted.org/packages/3b/a1/86a85c1a7a83bac7a59c8d513fec6751f9ba1729163ea3f3bfd004d31bdf/pytest-dynamodb-1.0.1.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "6e2bee40b277f18843c4433d709edc3f", "sha256": "a62ea60a791cf66020f860afc1994c6f761d3357d4b43df5232dbcc21ae42751" }, "downloads": -1, "filename": "pytest_dynamodb-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6e2bee40b277f18843c4433d709edc3f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11468, "upload_time": "2016-11-15T22:00:46", "url": "https://files.pythonhosted.org/packages/14/f6/2cb81718ba58a3cee7f0276d643221207566cf29a42b3941780cc3c23093/pytest_dynamodb-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ec39d0990b4f05179b0b8927a36b622c", "sha256": "6dc3fa8c771b377388336dffdd4d56d7f7a5f1c0f66e8ad6c4f73b3f7736aa1f" }, "downloads": -1, "filename": "pytest-dynamodb-1.1.0.tar.gz", "has_sig": false, "md5_digest": "ec39d0990b4f05179b0b8927a36b622c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8262, "upload_time": "2016-11-15T22:00:48", "url": "https://files.pythonhosted.org/packages/2b/69/e717cb2347dee43cd676eadaa77f5a84312181f130b2f9ab8daa86e43820/pytest-dynamodb-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "b5504fd769815dacf0af850cbc12683e", "sha256": "4e5339d26b39a2e9925947912bcb603520bf20ed261674ce3e68adb5d2aa5e42" }, "downloads": -1, "filename": "pytest_dynamodb-1.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b5504fd769815dacf0af850cbc12683e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11536, "upload_time": "2017-04-25T22:34:17", "url": "https://files.pythonhosted.org/packages/0f/d4/4bb5fd2ff67378e772cf518c3397a13d2b9ee362b56dcc1f951794e5748c/pytest_dynamodb-1.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dfc620f4cc6b6ea1e3b5d0e17039fa35", "sha256": "10966187fb04251786681263606aed0e707db5ce543fdec02be63f1279622c17" }, "downloads": -1, "filename": "pytest-dynamodb-1.1.1.tar.gz", "has_sig": false, "md5_digest": "dfc620f4cc6b6ea1e3b5d0e17039fa35", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8308, "upload_time": "2017-04-25T22:34:19", "url": "https://files.pythonhosted.org/packages/e1/d4/081868fbead5fde083e72cd2fca49106aa5b5e4f2d9f95ba4354cfacb7c9/pytest-dynamodb-1.1.1.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "f36fc66e2a36e4503e96bfcf6a3c1811", "sha256": "eba90fc7fa4aee8c87888ba0c63fa55dce685fbb0d3ac2f34c0e321e2c24dd49" }, "downloads": -1, "filename": "pytest_dynamodb-1.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f36fc66e2a36e4503e96bfcf6a3c1811", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 12109, "upload_time": "2017-07-18T14:34:18", "url": "https://files.pythonhosted.org/packages/cf/9d/4056db046e99c3cd5fda15f293e0bc5736e1005bff5450c17a38ce813434/pytest_dynamodb-1.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a7c5fa6ffa9f76320324e2d9f57b1455", "sha256": "061b26c5ccc7f771aaca8d8d8ede2e75e96324b60858b4fa6b3d35f1b200ee7f" }, "downloads": -1, "filename": "pytest-dynamodb-1.2.0.tar.gz", "has_sig": false, "md5_digest": "a7c5fa6ffa9f76320324e2d9f57b1455", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9353, "upload_time": "2017-07-18T14:34:21", "url": "https://files.pythonhosted.org/packages/81/9d/0dcae73cee74128357acadd09a7d5e77dfb82eb7bb5a8bfb0e8d6c79c1f4/pytest-dynamodb-1.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f36fc66e2a36e4503e96bfcf6a3c1811", "sha256": "eba90fc7fa4aee8c87888ba0c63fa55dce685fbb0d3ac2f34c0e321e2c24dd49" }, "downloads": -1, "filename": "pytest_dynamodb-1.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f36fc66e2a36e4503e96bfcf6a3c1811", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 12109, "upload_time": "2017-07-18T14:34:18", "url": "https://files.pythonhosted.org/packages/cf/9d/4056db046e99c3cd5fda15f293e0bc5736e1005bff5450c17a38ce813434/pytest_dynamodb-1.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a7c5fa6ffa9f76320324e2d9f57b1455", "sha256": "061b26c5ccc7f771aaca8d8d8ede2e75e96324b60858b4fa6b3d35f1b200ee7f" }, "downloads": -1, "filename": "pytest-dynamodb-1.2.0.tar.gz", "has_sig": false, "md5_digest": "a7c5fa6ffa9f76320324e2d9f57b1455", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9353, "upload_time": "2017-07-18T14:34:21", "url": "https://files.pythonhosted.org/packages/81/9d/0dcae73cee74128357acadd09a7d5e77dfb82eb7bb5a8bfb0e8d6c79c1f4/pytest-dynamodb-1.2.0.tar.gz" } ] }