{ "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", "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-rabbitmq\n===============\n\n.. image:: https://img.shields.io/pypi/v/pytest-rabbitmq.svg\n :target: https://pypi.python.org/pypi/pytest-rabbitmq/\n :alt: Latest PyPI version\n\n.. image:: https://img.shields.io/pypi/wheel/pytest-rabbitmq.svg\n :target: https://pypi.python.org/pypi/pytest-rabbitmq/\n :alt: Wheel Status\n\n.. image:: https://img.shields.io/pypi/pyversions/pytest-rabbitmq.svg\n :target: https://pypi.python.org/pypi/pytest-rabbitmq/\n :alt: Supported Python Versions\n\n.. image:: https://img.shields.io/pypi/l/pytest-rabbitmq.svg\n :target: https://pypi.python.org/pypi/pytest-rabbitmq/\n :alt: License\n\nPackage status\n--------------\n\n.. image:: https://travis-ci.org/ClearcodeHQ/pytest-rabbitmq.svg?branch=v1.1.2\n :target: https://travis-ci.org/ClearcodeHQ/pytest-rabbitmq\n :alt: Tests\n\n.. image:: https://coveralls.io/repos/ClearcodeHQ/pytest-rabbitmq/badge.png?branch=v1.1.2\n :target: https://coveralls.io/r/ClearcodeHQ/pytest-rabbitmq?branch=v1.1.2\n :alt: Coverage Status\n\n.. image:: https://requires.io/github/ClearcodeHQ/pytest-rabbitmq/requirements.svg?tag=v1.1.2\n :target: https://requires.io/github/ClearcodeHQ/pytest-rabbitmq/requirements/?tag=v1.1.2\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 RabbitMQ Queues.\nIt allows you to specify additional fixtures for RabbitMQ process and client.\n\nHow to use\n==========\n\nPlugin contains two fixtures\n\n* **rabbitmq** - it's a client fixture that has functional scope. After each test, it cleans RabbitMQ, cleans queues and exchanges for more reliable tests.\n* **rabbitmq_proc** - session scoped fixture, that starts RabbitMQ 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 rabbitmq client and process fixtures if you'd need to:\n\n\n.. code-block:: python\n\n from pytest_rabbitmq import factories\n\n rabbitmq_my_proc = factories.rabbitmq_proc(\n port=None, logsdir='/tmp')\n rabbitmq_my = factories.rabbitmq('rabbitmq_my_proc')\n\n.. note::\n\n Each RabbitMQ process fixture can be configured in a different way than the others through the fixture factory arguments.\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| RabbitMQ option | Fixture factory argument | Command line option | pytest.ini option | Default |\n+==========================+==========================+=====================+===================+=======================================+\n| host | host | --rabbitmq-host | rabbitmq_host | 127.0.0.1 |\n+--------------------------+--------------------------+---------------------+-------------------+---------------------------------------+\n| port | port | --rabbitmq-port | rabbitmq_port | random |\n+--------------------------+--------------------------+---------------------+-------------------+---------------------------------------+\n| rabbitmqctl path | ctl | --rabbitmq-ctl | rabbitmq_ctl | /usr/lib/rabbitmq/bin/rabbitmqctl |\n+--------------------------+--------------------------+---------------------+-------------------+---------------------------------------+\n| rabbitmq server path | server | --rabbitmq-server | rabbitmq_server | /usr/lib/rabbitmq/bin/rabbitmq-server |\n+--------------------------+--------------------------+---------------------+-------------------+---------------------------------------+\n| Log directory location | logsdir | --rabbitmq-logsdir | rabbitmq_logsdir | $TMPDIR |\n+--------------------------+--------------------------+---------------------+-------------------+---------------------------------------+\n| Node name | node | --rabbitmq-node | rabbitmq_node | rabbitmq-test-{port} |\n+--------------------------+--------------------------+---------------------+-------------------+---------------------------------------+\n\nExample usage:\n\n* pass it as an argument in your own fixture\n\n .. code-block:: python\n\n rabbitmq_proc = factories.rabbitmq_proc(port=8888)\n\n* use ``--rabbitmq-port`` command line option when you run your tests\n\n .. code-block::\n\n py.test tests --rabbitmq-port=8888\n\n\n* specify your port as ``rabbitmq_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 rabbitmq_port = 8888\n\nPackage resources\n-----------------\n\n* Bug tracker: https://github.com/ClearcodeHQ/pytest-rabbitmq/issues\n\n\nCHANGELOG\n=========\n\n1.1.2\n-------\n\n- [fix] Fix list queues functionality\n\n1.1.1\n-------\n\n- [enhancemet] removed path.py dependency\n\n1.1.0\n-------\n\n- [enhancements] adjust pytest-rabbitmq to pytest 3. require pytest 3.\n\n1.0.0\n-------\n\n- [enhancements] command line and pytest.ini options for modifying rabbitmq node name\n- [enhancements] command line and pytest.ini options for modifying server exec path\n- [enhancements] command line and pytest.ini options for modifying ctl exec path\n- [enhancements] command line and pytest.ini options for modifying host\n- [enhancements] command line and pytest.ini options for modifying port\n- [enhancements] command line and pytest.ini options for modifying logs directory destination\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ClearcodeHQ/pytest-rabbitmq", "keywords": "RabbitMQ process and client fixtures for pytest", "license": "LGPLv3", "maintainer": "", "maintainer_email": "", "name": "pytest-rabbitmq", "package_url": "https://pypi.org/project/pytest-rabbitmq/", "platform": "", "project_url": "https://pypi.org/project/pytest-rabbitmq/", "project_urls": { "Homepage": "https://github.com/ClearcodeHQ/pytest-rabbitmq" }, "release_url": "https://pypi.org/project/pytest-rabbitmq/1.1.2/", "requires_dist": [ "pytest (>=3.0.0)", "port-for", "mirakuru", "rabbitpy", "sphinx; extra == 'docs'", "pytest-xdist (==1.22.5); extra == 'tests'", "pytest-cov (==2.5.1); extra == 'tests'" ], "requires_python": "", "summary": "RabbitMQ process and client fixtures for pytest", "version": "1.1.2" }, "last_serial": 4156930, "releases": { "0.0.0": [], "1.0.0": [ { "comment_text": "", "digests": { "md5": "a02dd8145197097b187ddaa9ea9c1aa2", "sha256": "c7ef238c272a775c881902b17a11a992bb3dd57f9ecfc922dfd34df7278c2daf" }, "downloads": -1, "filename": "pytest_rabbitmq-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a02dd8145197097b187ddaa9ea9c1aa2", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 14281, "upload_time": "2016-11-24T23:40:50", "url": "https://files.pythonhosted.org/packages/6c/7a/c08ed99d2f61647f93b8223c7e35ec453c1841b719cac64002b8e58201f3/pytest_rabbitmq-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ce826b4962285740111dd00388942620", "sha256": "a3be7fccbbfec73aab6169405d798ef80f1dd879dda6e09308f3588836be6318" }, "downloads": -1, "filename": "pytest-rabbitmq-1.0.0.tar.gz", "has_sig": false, "md5_digest": "ce826b4962285740111dd00388942620", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9335, "upload_time": "2016-11-24T23:40:52", "url": "https://files.pythonhosted.org/packages/41/18/4c8e81e51169971dc864177bd75b5a21e9a8c288dca56e999e8b5f5ce094/pytest-rabbitmq-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "97b4a194facba3136a701ae9ef7e396a", "sha256": "d970ad8b15eaa0bc271079c84083d63303cfa43c3d1294935a2f3b4314514bb1" }, "downloads": -1, "filename": "pytest_rabbitmq-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "97b4a194facba3136a701ae9ef7e396a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 14343, "upload_time": "2016-11-25T13:47:52", "url": "https://files.pythonhosted.org/packages/ee/13/88416d38b74f59374efdc57213d6d6c19c2f2772cc7729b99c41c1a30b26/pytest_rabbitmq-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9f9f0fea405797a495e0d05b6b70c45a", "sha256": "827fdb2d8f432180a5e53afdce866da836c81cb38e58d715bc2d9331288f6077" }, "downloads": -1, "filename": "pytest-rabbitmq-1.1.0.tar.gz", "has_sig": false, "md5_digest": "9f9f0fea405797a495e0d05b6b70c45a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9376, "upload_time": "2016-11-25T13:47:54", "url": "https://files.pythonhosted.org/packages/e8/8e/4eb4f572448f9cbf6bacdb35fa44876351c771ef6d596be75846021c119d/pytest-rabbitmq-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "1313d9cc8881c0ae942bb32220f113f8", "sha256": "7ab6581fd9dca574649180b2d8adb32a82b12fe66d278ff7ef4d45367b8cd759" }, "downloads": -1, "filename": "pytest_rabbitmq-1.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1313d9cc8881c0ae942bb32220f113f8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 14400, "upload_time": "2017-04-17T22:23:55", "url": "https://files.pythonhosted.org/packages/52/81/170d9f3024cfa358c98a07f377a3a7dae2e04951b0dc1f64137d8f3524b4/pytest_rabbitmq-1.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d9e403e6f3b9292370af25e8e8cbf051", "sha256": "1b31ed4a2b78a4da1b9dd24eedecdb0aa094df586e86fa05c3c004a000fc6ed7" }, "downloads": -1, "filename": "pytest-rabbitmq-1.1.1.tar.gz", "has_sig": false, "md5_digest": "d9e403e6f3b9292370af25e8e8cbf051", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9751, "upload_time": "2017-04-17T22:23:57", "url": "https://files.pythonhosted.org/packages/cc/42/54edeaed1e6ff166ab66c4725afa80fc1659b9e4727347ad6dd805db4a82/pytest-rabbitmq-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "4dd83a762a03957afc80267fd5b23851", "sha256": "cb432792ac5807e6e1091c0544608ec8552e90eec59a983d6a6ffbbea0b9df63" }, "downloads": -1, "filename": "pytest_rabbitmq-1.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4dd83a762a03957afc80267fd5b23851", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11756, "upload_time": "2018-08-10T13:16:07", "url": "https://files.pythonhosted.org/packages/c0/ab/f4dec314e82b01afb22d61df8b37c8164ddce889255b43cf61a2a0a02b62/pytest_rabbitmq-1.1.2-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4dd83a762a03957afc80267fd5b23851", "sha256": "cb432792ac5807e6e1091c0544608ec8552e90eec59a983d6a6ffbbea0b9df63" }, "downloads": -1, "filename": "pytest_rabbitmq-1.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4dd83a762a03957afc80267fd5b23851", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11756, "upload_time": "2018-08-10T13:16:07", "url": "https://files.pythonhosted.org/packages/c0/ab/f4dec314e82b01afb22d61df8b37c8164ddce889255b43cf61a2a0a02b62/pytest_rabbitmq-1.1.2-py2.py3-none-any.whl" } ] }