{ "info": { "author": "Jon Gartman", "author_email": "jongartman@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "testing.elasticsearch\n=====================\n\n`testing.elasticsearch` automatically sets up an elasticsearch instance in a\ntemporary directory, and destroys it after testing. It's useful as a pytest\nfixture for testing interactions with elasticsearch in an isolated manner.\n\n\nImplementation is based off the awesome `testing.redis `_ module.\n\nExample usage:\n\n.. code-block:: python\n\n import testing.elasticsearch\n import pyes.es import ES\n\n # launch new elasticsearch server:\n with testing.elasticsearch.ElasticSearchServer() es:\n elasticsearch = ES(es.uri())\n # perform any testing with elasticsearch here\n\n # elasticsearch server is terminated and cleaned up here\n\n\nYou can change the server configuration by specifying a `config` dict:\n\n.. code-block:: python\n\n with ElasticSearchServer(config={\n 'logger.level': 'DEBUG',\n # Keep index in memory\n 'index.store.type': 'mmapfs',\n }) as es:\n ...\n\n\n...or by setting them on the `config` attribute before starting the server:\n\n.. code-block:: python\n\n es = ElasticSearchServer()\n es.config['logger.level'] = 'DEBUG'\n es.start()\n\n\nYou can also setup a pytest fixture:\n\n.. code-block:: python\n\n @pytest.fixture(scope='session')\n def elasticsearch(request):\n \"\"\"\n A testing fixture that provides a running elasticsearch server.\n \"\"\"\n es = ElasticSearchServer()\n es.start()\n request.addfinalizer(es.stop)\n return es\n\n\nTesting\n-------\n\nTo run tests you'll need to install the test requirements::\n\n pip install -r src/tests/requirements.txt\n\nRun tests::\n\n python src/tests/runtests.py", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jong/testing.elasticsearch", "keywords": "testing,elasticsearch", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "testing.elasticsearch", "package_url": "https://pypi.org/project/testing.elasticsearch/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/testing.elasticsearch/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/jong/testing.elasticsearch" }, "release_url": "https://pypi.org/project/testing.elasticsearch/0.3.0/", "requires_dist": null, "requires_python": null, "summary": "Automatically sets up an elasticsearch instance in a temporary directory, and destroys it after testing", "version": "0.3.0" }, "last_serial": 1940830, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "22618d808091b3232d7c1750abfd69ad", "sha256": "9b5b843363b3b9fccfcff30cff77571a77310bb3390d82f90b79bc068529e56b" }, "downloads": -1, "filename": "testing.elasticsearch-0.1.1.tar.gz", "has_sig": false, "md5_digest": "22618d808091b3232d7c1750abfd69ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4908, "upload_time": "2015-03-23T04:01:05", "url": "https://files.pythonhosted.org/packages/2d/ae/22c4da5524291d2158f76455bdc6ed6a178a132600285170f08f04f0c7e0/testing.elasticsearch-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "47c04d07350a8e45e64d34d57e848524", "sha256": "a64bac64f68ac3caeaf28b30e1ee9a0144b899043724dce90563f5f1dc69e38d" }, "downloads": -1, "filename": "testing.elasticsearch-0.1.2.tar.gz", "has_sig": false, "md5_digest": "47c04d07350a8e45e64d34d57e848524", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4939, "upload_time": "2015-03-23T04:12:24", "url": "https://files.pythonhosted.org/packages/f0/2c/372c4c36a85e42135e65271fc7d3d139c0ca9b747f10551647fa23da8bd9/testing.elasticsearch-0.1.2.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "c06db5414e6209636ba5d508e52222a4", "sha256": "e732db5f4e1ed602b5308339b67338f1407e0eefcf2e32ed9f492bd7d88964e1" }, "downloads": -1, "filename": "testing.elasticsearch-0.2.0.tar.gz", "has_sig": false, "md5_digest": "c06db5414e6209636ba5d508e52222a4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5096, "upload_time": "2015-03-23T22:19:24", "url": "https://files.pythonhosted.org/packages/8e/48/5b7a93a0343bd92a01ee18495ab0993829127d0eaf68c028f1dccc8a60c6/testing.elasticsearch-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "3cb7f9cef14741ca81e7faf8375747d4", "sha256": "8b50da50043e38ae621057998537181ddf706e93b0c93f8d3b262be08af5cad7" }, "downloads": -1, "filename": "testing.elasticsearch-0.2.1.tar.gz", "has_sig": false, "md5_digest": "3cb7f9cef14741ca81e7faf8375747d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5180, "upload_time": "2015-03-24T20:53:11", "url": "https://files.pythonhosted.org/packages/11/fe/266b87a249df68225dce1c9b11abe151744e529b641e675b9598cdb2e217/testing.elasticsearch-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "built for Darwin-14.0.0", "digests": { "md5": "3ae3d77e0986820dbcb91fcee991265b", "sha256": "f38e5e77e7f6a915c026dd2fde2b7786fadde267ea62ad9e78d0d2bd6f8074ef" }, "downloads": -1, "filename": "testing.elasticsearch-0.2.2.macosx-10.10-x86_64.tar.gz", "has_sig": false, "md5_digest": "3ae3d77e0986820dbcb91fcee991265b", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 5246, "upload_time": "2015-04-17T21:49:00", "url": "https://files.pythonhosted.org/packages/af/03/8ec384f4385b74f8ef80a46dc69d19cf39a1bd28e29b082315777fd5975d/testing.elasticsearch-0.2.2.macosx-10.10-x86_64.tar.gz" } ], "0.2.3": [ { "comment_text": "built for Darwin-14.0.0", "digests": { "md5": "f9190844974d92fb2811a7d29e76510b", "sha256": "730e5bbfd77c15301aea0e1189e7edbfc475eccf1b270ce00882a2fbc1f73fdb" }, "downloads": -1, "filename": "testing.elasticsearch-0.2.3.macosx-10.10-x86_64.tar.gz", "has_sig": false, "md5_digest": "f9190844974d92fb2811a7d29e76510b", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 5262, "upload_time": "2015-04-24T20:45:05", "url": "https://files.pythonhosted.org/packages/9a/6c/98e3befba966025f8681f6830bc6798f2a2b6bfdc5e4c8985e355add2a64/testing.elasticsearch-0.2.3.macosx-10.10-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "11a477bcefa1930e832c92bcba9eb473", "sha256": "6a69872c0fda7079ef7e25de88ab900d59dda9a79f39f5782fcf95c0182de973" }, "downloads": -1, "filename": "testing.elasticsearch-0.2.3.tar.gz", "has_sig": false, "md5_digest": "11a477bcefa1930e832c92bcba9eb473", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5292, "upload_time": "2015-04-24T20:46:02", "url": "https://files.pythonhosted.org/packages/5f/ba/b2a0f48f5818bd45439c7291f53542da607a704cd864094f666cc34e9ea9/testing.elasticsearch-0.2.3.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "74643e66f74e3e5d35e7a38bc33e17b3", "sha256": "db09fb9bcaec3a090abf025b7b2813b24839c35736c823324f249f09aaf6f682" }, "downloads": -1, "filename": "testing.elasticsearch-0.3.0-py2-none-any.whl", "has_sig": false, "md5_digest": "74643e66f74e3e5d35e7a38bc33e17b3", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6135, "upload_time": "2016-02-05T00:23:28", "url": "https://files.pythonhosted.org/packages/38/62/c65f6dca45f1ee47db691b4ff74906181c47d885f82bc7e4b3d580a188c7/testing.elasticsearch-0.3.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a3fe22981bed588836d66a3d3646c533", "sha256": "b7a9065403ee07ec6d22f311369697bbc41141fffc218bf95b24e0c93b6a44f7" }, "downloads": -1, "filename": "testing.elasticsearch-0.3.0.tar.gz", "has_sig": false, "md5_digest": "a3fe22981bed588836d66a3d3646c533", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5676, "upload_time": "2016-02-05T00:23:19", "url": "https://files.pythonhosted.org/packages/1f/30/15cec34c92f602a05d1aab6a4b8c4b4a09521f7f1e14d21dd527cbdaa207/testing.elasticsearch-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "74643e66f74e3e5d35e7a38bc33e17b3", "sha256": "db09fb9bcaec3a090abf025b7b2813b24839c35736c823324f249f09aaf6f682" }, "downloads": -1, "filename": "testing.elasticsearch-0.3.0-py2-none-any.whl", "has_sig": false, "md5_digest": "74643e66f74e3e5d35e7a38bc33e17b3", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6135, "upload_time": "2016-02-05T00:23:28", "url": "https://files.pythonhosted.org/packages/38/62/c65f6dca45f1ee47db691b4ff74906181c47d885f82bc7e4b3d580a188c7/testing.elasticsearch-0.3.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a3fe22981bed588836d66a3d3646c533", "sha256": "b7a9065403ee07ec6d22f311369697bbc41141fffc218bf95b24e0c93b6a44f7" }, "downloads": -1, "filename": "testing.elasticsearch-0.3.0.tar.gz", "has_sig": false, "md5_digest": "a3fe22981bed588836d66a3d3646c533", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5676, "upload_time": "2016-02-05T00:23:19", "url": "https://files.pythonhosted.org/packages/1f/30/15cec34c92f602a05d1aab6a4b8c4b4a09521f7f1e14d21dd527cbdaa207/testing.elasticsearch-0.3.0.tar.gz" } ] }