{ "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-elasticsearch\n====================\n\n.. image:: https://img.shields.io/pypi/v/pytest-elasticsearch.svg\n :target: https://pypi.python.org/pypi/pytest-elasticsearch/\n :alt: Latest PyPI version\n\n.. image:: https://img.shields.io/pypi/wheel/pytest-elasticsearch.svg\n :target: https://pypi.python.org/pypi/pytest-elasticsearch/\n :alt: Wheel Status\n\n.. image:: https://img.shields.io/pypi/pyversions/pytest-elasticsearch.svg\n :target: https://pypi.python.org/pypi/pytest-elasticsearch/\n :alt: Supported Python Versions\n\n.. image:: https://img.shields.io/pypi/l/pytest-elasticsearch.svg\n :target: https://pypi.python.org/pypi/pytest-elasticsearch/\n :alt: License\n\nPackage status\n--------------\n\n.. image:: https://travis-ci.org/ClearcodeHQ/pytest-elasticsearch.svg?branch=v1.3.0\n :target: https://travis-ci.org/ClearcodeHQ/pytest-elasticsearch\n :alt: Tests\n\n.. image:: https://coveralls.io/repos/ClearcodeHQ/pytest-elasticsearch/badge.png?branch=v1.3.0\n :target: https://coveralls.io/r/ClearcodeHQ/pytest-elasticsearch?branch=v1.3.0\n :alt: Coverage Status\n\n.. image:: https://requires.io/github/ClearcodeHQ/pytest-elasticsearch/requirements.svg?tag=v1.3.0\n :target: https://requires.io/github/ClearcodeHQ/pytest-elasticsearch/requirements/?tag=v1.3.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 Elasticsearch search engine.\nIt allows you to specify fixtures for Elasticsearch process and client.\n\nHow to use\n==========\n\n.. warning::\n\n This fixture requires at least version 1.0 of elasticsearch to work.\n\nThe plugin contains two fixtures:\n\n* **elasticsearch** - a client fixture that has functional scope, and which cleans Elasticsearch at the end of each test.\n* **elasticsearch_proc** - a session scoped fixture, that starts Elasticsearch instance at its 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 elasticsearch client and process fixtures if you'd need to:\n\n\n.. code-block:: python\n\n from pytest_elasticsearch import factories\n\n elasticsearch_my_proc = factories.elasticsearch_proc(\n port=None, logsdir='/tmp')\n elasticsearch_my = factories.elasticsearch('elasticsearch_my_proc')\n\n.. note::\n\n Each elasticsearch 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\n1. Fixture factory argument\n2. Command line option\n3. Configuration option in your pytest.ini file\n\n+----------------------+--------------------------------------+------------------------------------------------------+----------------------------------------------------+------------------------------+\n| Elasticsearch option | Fixture factory argument | Command line option | pytest.ini option | Default |\n+======================+======================================+======================================================+====================================================+==============================+\n| logs directory | logsdir | --elasticsearch-logsdir | elasticsearch_logsdir | $TMPDIR |\n+----------------------+--------------------------------------+------------------------------------------------------+----------------------------------------------------+------------------------------+\n| host | host | --elasticsearch-host | elasticsearch_host | 127.0.0.1 |\n+----------------------+--------------------------------------+------------------------------------------------------+----------------------------------------------------+------------------------------+\n| port | port | --elasticsearch-port | elasticsearch_port | random |\n+----------------------+--------------------------------------+------------------------------------------------------+----------------------------------------------------+------------------------------+\n| cluster_name | cluster_name | --elasticsearch-cluster-name | elasticsearch_cluster_name | elasticsearch_cluster_ |\n+----------------------+--------------------------------------+------------------------------------------------------+----------------------------------------------------+------------------------------+\n| index store type | index_store_type | --elasticsearch-index-store-type | elasticsearch_index_store_type | memory |\n+----------------------+--------------------------------------+------------------------------------------------------+----------------------------------------------------+------------------------------+\n| network publish host | network_publish_host | --elasticsearch-network-publish-host | elasticsearch_network_publish_host | 127.0.0.1 |\n+----------------------+--------------------------------------+------------------------------------------------------+----------------------------------------------------+------------------------------+\n| logs prefix | logs_prefix | --elasticsearch-logs-prefix | elasticsearch_logs_prefix | |\n+----------------------+--------------------------------------+------------------------------------------------------+----------------------------------------------------+------------------------------+\n| enable zen discovery | discovery_zen_ping_multicast_enabled | --elasticsearch-discovery-zen-ping-multicast-enabled | elasticsearch_discovery_zen_ping_multicast_enabled | False |\n+----------------------+--------------------------------------+------------------------------------------------------+----------------------------------------------------+------------------------------+\n| transport tcp port | transport_tcp_port | --elasticsearch-transport-tcp-port | elasticsearch_transport_tcp_port | random |\n+----------------------+--------------------------------------+------------------------------------------------------+----------------------------------------------------+------------------------------+\n| configuration path | configuration_path | --elasticsearch-configuration-path | elasticsearch_configuration_path | /etc/elasticsearch |\n+----------------------+--------------------------------------+------------------------------------------------------+----------------------------------------------------+------------------------------+\n\nExample usage:\n\n* pass it as an argument in your own fixture\n\n .. code-block:: python\n\n elasticsearch_proc = factories.elasticsearch_proc(\n cluster_name='awsome_cluster)\n\n* use ``--elasticsearch-logsdir`` command line option when you run your tests\n\n .. code-block::\n\n py.test tests --elasticsearch-cluster-name=awsome_cluster\n\n\n* specify your directory as ``elasticsearch_cluster_name`` 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 elasticsearch_cluster_name = awsome_cluster\n\nPackage resources\n-----------------\n\n* Bug tracker: https://github.com/ClearcodeHQ/pytest-elasticsearch/issues\n\n\nCHANGELOG\n=========\n\n1.3.0\n-------\n\n- [feature] - Support for major elasticsearch versions\n\n\n1.2.1\n-------\n\n- [cleanup] - removed path.py dependency\n\n1.2.0\n-------\n\n- [feature] - migrate usage of getfuncargvalue to getfixturevalue. require at least pytest 3.0.0\n- [feature] - default logsdir to $TMPDIR\n- [feature] - run process on random port by default - enhances xdist experience\n\n1.1.0\n-------\n\n- [feature] use tmpfile.gettempdir instead of hardcoded /tmp directory\n- [docs] added description to all command line and ini options\n- [bugfix] made command line option's dests more distinc, to prevent from influencing other pytest plugins\n\n1.0.0\n-------\n\n- [feature] pytest.ini option for every command line option\n- [feature] Command line options for every fixture factory argument\n- Extracted original code from pytest-dbfixtures\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-elasticsearch", "keywords": "tests py.test pytest fixture elasticsearch", "license": "LGPLv3+", "maintainer": "", "maintainer_email": "", "name": "pytest-elasticsearch", "package_url": "https://pypi.org/project/pytest-elasticsearch/", "platform": "", "project_url": "https://pypi.org/project/pytest-elasticsearch/", "project_urls": { "Homepage": "https://github.com/ClearcodeHQ/pytest-elasticsearch" }, "release_url": "https://pypi.org/project/pytest-elasticsearch/1.3.0/", "requires_dist": [ "pytest (>=3.0.0)", "mirakuru", "elasticsearch", "port-for", "sphinx; extra == 'docs'", "pytest-cov (==2.5.1); extra == 'tests'", "pytest-xdist (==1.20.0); extra == 'tests'", "mock (==2.0.0); extra == 'tests'" ], "requires_python": "", "summary": "Elasticsearch process and client fixtures for py.test.", "version": "1.3.0" }, "last_serial": 3734118, "releases": { "0.0.0": [], "1.0.0": [ { "comment_text": "", "digests": { "md5": "1eb0d20b761bdde7661904163eff6beb", "sha256": "e9f4c2b7b1fbc4059d9c3b77a568015f3c85aae47ea77d8727ff459493bbd9d0" }, "downloads": -1, "filename": "pytest_elasticsearch-1.0.0-py2.7.egg", "has_sig": false, "md5_digest": "1eb0d20b761bdde7661904163eff6beb", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 14519, "upload_time": "2016-08-13T20:42:22", "url": "https://files.pythonhosted.org/packages/a3/ef/2d055293d03bae11454d40d1ea227a022d078792eac796401032486d568c/pytest_elasticsearch-1.0.0-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "80bc2586f9684c1618f84dff3dcbfccf", "sha256": "7e60adbadc3db16b444399992f29dbeae2a5da173485d383b6041e6469985c29" }, "downloads": -1, "filename": "pytest_elasticsearch-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "80bc2586f9684c1618f84dff3dcbfccf", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 12217, "upload_time": "2016-08-13T20:42:18", "url": "https://files.pythonhosted.org/packages/55/28/44ebd69577d0e336ed472478289984a7ae139cbfc7adc18a838271453e60/pytest_elasticsearch-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "995b007cc3c3881a85ae9b951f66087c", "sha256": "d37b5e45cbc13bd26023276e3492999a1a101a109bef0b9138887b7d202227d5" }, "downloads": -1, "filename": "pytest-elasticsearch-1.0.0.tar.gz", "has_sig": false, "md5_digest": "995b007cc3c3881a85ae9b951f66087c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30308, "upload_time": "2016-08-13T20:42:20", "url": "https://files.pythonhosted.org/packages/7f/51/e72998fda6213c84b3fd0e928c5467ece11101b471c950171f47bbb154b2/pytest-elasticsearch-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "0d4a5023078760850badde5d608a28f0", "sha256": "3caa48505fa824330cc3c3d577f5e2dd6b17fa1b9447b659a38527431d8c508f" }, "downloads": -1, "filename": "pytest_elasticsearch-1.1.0-py2.7.egg", "has_sig": false, "md5_digest": "0d4a5023078760850badde5d608a28f0", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 15079, "upload_time": "2016-08-17T22:12:41", "url": "https://files.pythonhosted.org/packages/86/df/b2d083670f534faed9b0f3c8411f53f1bef8c821c8721ca909c91eb340aa/pytest_elasticsearch-1.1.0-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "9eee00932febc40e97430aaead42b8ea", "sha256": "d76419c744da31d4b9d80a636aad11e63e100adcb0c3e379d4716c91ceecaf25" }, "downloads": -1, "filename": "pytest_elasticsearch-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9eee00932febc40e97430aaead42b8ea", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 12620, "upload_time": "2016-08-17T22:12:36", "url": "https://files.pythonhosted.org/packages/ee/91/d61f53bdbadbbf462100a1dc459c959e6a2e5934cdb607e14a4951474dbc/pytest_elasticsearch-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "64465afa547fcdb9e490f287dd7d1fb4", "sha256": "79fc0e6683d806e2bce472498cc351f45c3b690112eca04e5ce9138cb3a5b1c1" }, "downloads": -1, "filename": "pytest-elasticsearch-1.1.0.tar.gz", "has_sig": false, "md5_digest": "64465afa547fcdb9e490f287dd7d1fb4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30637, "upload_time": "2016-08-17T22:12:38", "url": "https://files.pythonhosted.org/packages/d0/d3/8682777e49b9787ba7716843ad1b170a4c4c96d9bcd69a2331983063bc8b/pytest-elasticsearch-1.1.0.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "74fd5fce221ea9378085ed727c90d0d9", "sha256": "ac4047e30c35325b97ed34b421549dd5616b7bcf78b284226aeb020023ccc160" }, "downloads": -1, "filename": "pytest_elasticsearch-1.2.0-py2.7.egg", "has_sig": false, "md5_digest": "74fd5fce221ea9378085ed727c90d0d9", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 15016, "upload_time": "2016-10-24T22:55:12", "url": "https://files.pythonhosted.org/packages/ea/2d/3cef00d99a4aa3985933d1c5ff61707693764a36cf025db89404252eb0a9/pytest_elasticsearch-1.2.0-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "922979dd020056e4965d5fec3bd40717", "sha256": "8e708e929b54314b56343b03896c1bf85884b39303c5d7d583d2f96e881a7915" }, "downloads": -1, "filename": "pytest_elasticsearch-1.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "922979dd020056e4965d5fec3bd40717", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 12519, "upload_time": "2016-10-24T22:55:07", "url": "https://files.pythonhosted.org/packages/e1/2a/801d92892c3a97173cd53a349ad0429f0ec760121ad0a30fd895483ce206/pytest_elasticsearch-1.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "29aaca8bd4fd6d2f23c61ccc24ca94ee", "sha256": "df96880c5538aeef80e015cd9080156d02540abd64bf45d4b3a7c37b89dccaf4" }, "downloads": -1, "filename": "pytest-elasticsearch-1.2.0.tar.gz", "has_sig": false, "md5_digest": "29aaca8bd4fd6d2f23c61ccc24ca94ee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30512, "upload_time": "2016-10-24T22:55:10", "url": "https://files.pythonhosted.org/packages/b1/9e/e9c162df2cbd20ff17c3184684e2faec5047a3965d128648770fc239756d/pytest-elasticsearch-1.2.0.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "11d2001e9b6ef2c63cf71481ffc7c4b3", "sha256": "5435f2794afbf3b0397a9af7348c1bea067febafce840a7bddba1e93d4f37336" }, "downloads": -1, "filename": "pytest_elasticsearch-1.2.1-py2.7.egg", "has_sig": false, "md5_digest": "11d2001e9b6ef2c63cf71481ffc7c4b3", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 15069, "upload_time": "2017-01-25T13:00:35", "url": "https://files.pythonhosted.org/packages/96/8c/e8ac782daeef3927d65466b5744b551f3589520d7384ee8122cf30fd4cb6/pytest_elasticsearch-1.2.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "becf4b2999ca54d183f0d2cb81f0f182", "sha256": "e6913d45ba157c7baa8fe95da5c2f5073fdd10ee930e83763a18ca6d73f6be26" }, "downloads": -1, "filename": "pytest_elasticsearch-1.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "becf4b2999ca54d183f0d2cb81f0f182", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 12572, "upload_time": "2017-01-25T13:00:32", "url": "https://files.pythonhosted.org/packages/5c/63/74fa48e365d3bb36d43ab36c49e0eb5d847e0856186e8da23e50ffad9e06/pytest_elasticsearch-1.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "65165a87acec984d7da897a5d1e90666", "sha256": "d65c02deeca79edf891aa46bde42e675c1203e74bbb550ca4883dcd96c15f894" }, "downloads": -1, "filename": "pytest-elasticsearch-1.2.1.tar.gz", "has_sig": false, "md5_digest": "65165a87acec984d7da897a5d1e90666", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30586, "upload_time": "2017-01-25T13:00:34", "url": "https://files.pythonhosted.org/packages/51/d8/16e7d24eac182e0f8c750a3b05e6e8064a06d8c7232832e7f80b910a9c77/pytest-elasticsearch-1.2.1.tar.gz" } ], "1.3.0": [ { "comment_text": "", "digests": { "md5": "048139c29991547703207dbd2cfa83fc", "sha256": "a60c3a25f19951df9a30daf44da1be8617997c593f81fe4ae743489507f4a882" }, "downloads": -1, "filename": "pytest_elasticsearch-1.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "048139c29991547703207dbd2cfa83fc", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13490, "upload_time": "2018-04-04T14:29:40", "url": "https://files.pythonhosted.org/packages/b1/34/1f914edbd6d67aaee47c97cd83f52d4cec4aa76d049c99f47886680514e9/pytest_elasticsearch-1.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5e70a80fac5218f4e8d0919df3e9c489", "sha256": "747834cc900ceb8f664d7f6fd8af59687e92477d55fbcd40e2966660d18d0543" }, "downloads": -1, "filename": "pytest-elasticsearch-1.3.0.tar.gz", "has_sig": false, "md5_digest": "5e70a80fac5218f4e8d0919df3e9c489", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 32540, "upload_time": "2018-04-04T14:29:41", "url": "https://files.pythonhosted.org/packages/6f/1f/a4cf4fe93da9b0fe6cf8ee3fc6e4ba87238ae50f83c6cd0d1f1629d459af/pytest-elasticsearch-1.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "048139c29991547703207dbd2cfa83fc", "sha256": "a60c3a25f19951df9a30daf44da1be8617997c593f81fe4ae743489507f4a882" }, "downloads": -1, "filename": "pytest_elasticsearch-1.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "048139c29991547703207dbd2cfa83fc", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13490, "upload_time": "2018-04-04T14:29:40", "url": "https://files.pythonhosted.org/packages/b1/34/1f914edbd6d67aaee47c97cd83f52d4cec4aa76d049c99f47886680514e9/pytest_elasticsearch-1.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5e70a80fac5218f4e8d0919df3e9c489", "sha256": "747834cc900ceb8f664d7f6fd8af59687e92477d55fbcd40e2966660d18d0543" }, "downloads": -1, "filename": "pytest-elasticsearch-1.3.0.tar.gz", "has_sig": false, "md5_digest": "5e70a80fac5218f4e8d0919df3e9c489", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 32540, "upload_time": "2018-04-04T14:29:41", "url": "https://files.pythonhosted.org/packages/6f/1f/a4cf4fe93da9b0fe6cf8ee3fc6e4ba87238ae50f83c6cd0d1f1629d459af/pytest-elasticsearch-1.3.0.tar.gz" } ] }