{ "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-mongo\n============\n\n.. image:: https://img.shields.io/pypi/v/pytest-mongo.svg\n :target: https://pypi.python.org/pypi/pytest-mongo/\n :alt: Latest PyPI version\n\n.. image:: https://img.shields.io/pypi/wheel/pytest-mongo.svg\n :target: https://pypi.python.org/pypi/pytest-mongo/\n :alt: Wheel Status\n\n.. image:: https://img.shields.io/pypi/pyversions/pytest-mongo.svg\n :target: https://pypi.python.org/pypi/pytest-mongo/\n :alt: Supported Python Versions\n\n.. image:: https://img.shields.io/pypi/l/pytest-mongo.svg\n :target: https://pypi.python.org/pypi/pytest-mongo/\n :alt: License\n\nPackage status\n--------------\n\n.. image:: https://travis-ci.org/ClearcodeHQ/pytest-mongo.svg?branch=v1.2.1\n :target: https://travis-ci.org/ClearcodeHQ/pytest-mongo\n :alt: Tests\n\n.. image:: https://coveralls.io/repos/ClearcodeHQ/pytest-mongo/badge.png?branch=v1.2.1\n :target: https://coveralls.io/r/ClearcodeHQ/pytest-mongo?branch=v1.2.1\n :alt: Coverage Status\n\n.. image:: https://requires.io/github/ClearcodeHQ/pytest-mongo/requirements.svg?tag=v1.2.1\n :target: https://requires.io/github/ClearcodeHQ/pytest-mongo/requirements/?tag=v1.2.1\n :alt: Requirements Status\n\n\nWhat is this?\n=============\n\nThis is a pytest plugin, that enables you to test your code that relies on a running MongoDB database.\nIt allows you to specify fixtures for MongoDB process and client.\n\nHow to use\n==========\n\nPlugin contains two fixtures\n\n* **mongodb** - it's a client fixture that has functional scope, and which cleans MongoDB at the end of each test.\n* **mongo_proc** - session scoped fixture, that starts MongoDB instance at the 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 MongoDB client and process fixtures if you'd need to:\n\n\n.. code-block:: python\n\n from pytest_mongo import factories\n\n mongo_my_proc = factories.mongo_proc(\n port=None, logsdir='/tmp')\n mongo_my = factories.mongodb('mongo_my_proc')\n\n.. note::\n\n Each MongoDB 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| What | Fixture factory argument | Command line option | pytest.ini option | Default |\n+=======================+==========================+=====================+===================+=================+\n| Path to mongodb exec | executable | --mongo-exec | mongo_exec | /usr/bin/mongod |\n+-----------------------+--------------------------+---------------------+-------------------+-----------------+\n| MongoDB host | host | --mongo-host | mongo_host | 127.0.0.1 |\n+-----------------------+--------------------------+---------------------+-------------------+-----------------+\n| MongoDB port | port | --mongo-port | mongo_port | random |\n+-----------------------+--------------------------+---------------------+-------------------+-----------------+\n| Path to store logs | logsdir | --mongo-logsdir | mongo_logsdir | $TMPDIR |\n+-----------------------+--------------------------+---------------------+-------------------+-----------------+\n| Additional parameters | params | --mongo-params | mongo_params | |\n+-----------------------+--------------------------+---------------------+-------------------+-----------------+\n\nExample usage:\n\n* pass it as an argument in your own fixture\n\n .. code-block:: python\n\n mongo_proc = factories.mongo_proc(port=8888)\n\n* use ``--mongo-port`` command line option when you run your tests\n\n .. code-block::\n\n py.test tests --mongo-port=8888\n\n\n* specify your directory as ``mongo_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 mongo_port = 8888\n\nPackage resources\n-----------------\n\n* Bug tracker: https://github.com/ClearcodeHQ/pytest-mongo/issues\n\n\nCHANGELOG\n=========\n\n1.2.1\n-------\n\n- fix pypi description\n\n1.2.0\n-------\n\n- [enhancement] require at least pymongo 3.6\n\n1.1.2\n-------\n\n- [enhancement] removed path.py depdendency\n\n1.1.1\n-------\n\n- [enhancements] set executor timeout to 60. By default mirakuru waits indefinitely, which might cause test hangs\n\n1.1.0\n-------\n\n- [feature] - migrate usage of getfuncargvalue to getfixturevalue. require at least pytest 3.0.0\n\n1.0.0\n-------\n\n- [feature] defaults logs dir to $TMPDIR by default\n- [feature] run on random port by default (easier xdist integration)\n- [feature] add command line and ini option for: executable, host, port, params and logsdir\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-mongo", "keywords": "tests py.test pytest fixture mongo mongodb", "license": "LGPL", "maintainer": "", "maintainer_email": "", "name": "pytest-mongo", "package_url": "https://pypi.org/project/pytest-mongo/", "platform": "", "project_url": "https://pypi.org/project/pytest-mongo/", "project_urls": { "Homepage": "https://github.com/ClearcodeHQ/pytest-mongo" }, "release_url": "https://pypi.org/project/pytest-mongo/1.2.1/", "requires_dist": [ "pytest (>=3.0.0)", "pymongo (>=3.6)", "mirakuru", "port-for", "sphinx; extra == 'docs'", "pytest; extra == 'tests'", "pytest-cov (==2.5.1); extra == 'tests'", "pytest-xdist (==1.22.2); extra == 'tests'" ], "requires_python": "", "summary": "MongoDB process and client fixtures plugin for py.test.", "version": "1.2.1" }, "last_serial": 4061692, "releases": { "0.0.0": [], "1.0.0": [ { "comment_text": "", "digests": { "md5": "882c0f0de6285a69d47f6c7f732d61d4", "sha256": "710207f109a5391814ed52ec177393d334a76979076f1e3cf45253258f9f82cd" }, "downloads": -1, "filename": "pytest_mongo-1.0.0-py2.7.egg", "has_sig": false, "md5_digest": "882c0f0de6285a69d47f6c7f732d61d4", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 13165, "upload_time": "2016-08-30T20:44:11", "url": "https://files.pythonhosted.org/packages/c1/44/6332cdc0c4ee985ef18308749b2d1c726bef399e46165ecb78d709a5e355/pytest_mongo-1.0.0-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "7ec750b476acc6572b7ddb2b4bcb96e4", "sha256": "5bbe32bcebe127c7a2236e62c6a6918b9afc4814a042332ad15e65230dee7adf" }, "downloads": -1, "filename": "pytest_mongo-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7ec750b476acc6572b7ddb2b4bcb96e4", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11026, "upload_time": "2016-08-30T20:44:07", "url": "https://files.pythonhosted.org/packages/91/da/1958a8480802a9eed805db8dfa2b5d1fb56eb91b1f31a8803f984f50c189/pytest_mongo-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b8647da9f7186e5b34e67d0ddbaa4b85", "sha256": "e527a6fcc60c25bb5eea4bfe92707e81a0c3b5c9066242acb0b0ac4211c733ba" }, "downloads": -1, "filename": "pytest-mongo-1.0.0.tar.gz", "has_sig": false, "md5_digest": "b8647da9f7186e5b34e67d0ddbaa4b85", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13563, "upload_time": "2016-08-30T20:44:09", "url": "https://files.pythonhosted.org/packages/b1/3f/27d8444f791a1394559e67e475ae28d96d7d7051a135664585ac3921fe91/pytest-mongo-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "d9945d7b0767eda87e0dad0ea0e78cd1", "sha256": "85430525ace96f48f6bcc4cec531b8a71781b821a42cd38eedb11b435085e5ec" }, "downloads": -1, "filename": "pytest_mongo-1.1.0-py2.7.egg", "has_sig": false, "md5_digest": "d9945d7b0767eda87e0dad0ea0e78cd1", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 13159, "upload_time": "2016-10-24T23:08:54", "url": "https://files.pythonhosted.org/packages/06/0e/aa0b2a13098cb17246f5df9db65af5daf140d75db1e2ff8b73c19b039949/pytest_mongo-1.1.0-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "c0f54cec8c5796df8bb99e136b1b3c10", "sha256": "fa5419715c3cd0fef4295bcdae88abdf2a22a832491725007816a16196dfb3c7" }, "downloads": -1, "filename": "pytest_mongo-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c0f54cec8c5796df8bb99e136b1b3c10", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11027, "upload_time": "2016-10-24T23:08:50", "url": "https://files.pythonhosted.org/packages/eb/7a/88b21b74444f17552fa526c2e59255c0d32615d386549599055f6c6d9b85/pytest_mongo-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9fc102d23e0c7eecf9f93c7b47481378", "sha256": "b12c3096605affe4c284ffce442ebd2a26d30079b16ae20ab5b3c0a36d1c411b" }, "downloads": -1, "filename": "pytest-mongo-1.1.0.tar.gz", "has_sig": false, "md5_digest": "9fc102d23e0c7eecf9f93c7b47481378", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13562, "upload_time": "2016-10-24T23:08:52", "url": "https://files.pythonhosted.org/packages/01/be/f9eda000c49ab17ab200cee432e27c26c4212b526ba81dccbaae05616265/pytest-mongo-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "829a1b453ea7c89d7d5b1cf926e56483", "sha256": "f7fc8e96ac789505a712114edca97c113f77b808cb116e2cd38b6b19d0ff53e7" }, "downloads": -1, "filename": "pytest_mongo-1.1.1-py2.7.egg", "has_sig": false, "md5_digest": "829a1b453ea7c89d7d5b1cf926e56483", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 13194, "upload_time": "2016-11-07T21:19:00", "url": "https://files.pythonhosted.org/packages/c7/15/d138567ee9d2f3ca2b87332c023e68a8820671e962dea014aab7e29db1a0/pytest_mongo-1.1.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "edd66acc8603e070cdf7c7f459af12b7", "sha256": "c4090003ff591c518573eaa871ab8c791f884e8bf7644fd1e6e38b7597f7ea69" }, "downloads": -1, "filename": "pytest_mongo-1.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "edd66acc8603e070cdf7c7f459af12b7", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11166, "upload_time": "2016-11-07T21:18:56", "url": "https://files.pythonhosted.org/packages/b9/29/6e8822d21eea35b2f70c22808acac0fd93182dc7da12216795744abd44e1/pytest_mongo-1.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "68f6b847b28db8f97505f951295abae5", "sha256": "26c9fcf7e2074d738589156824794b135d6a6534f7885cc8e99c44f0d228f75b" }, "downloads": -1, "filename": "pytest-mongo-1.1.1.tar.gz", "has_sig": false, "md5_digest": "68f6b847b28db8f97505f951295abae5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7680, "upload_time": "2016-11-07T21:18:58", "url": "https://files.pythonhosted.org/packages/67/f9/895f5be12cc0d8c3f109a45fa495a2333a940d48b93be9056081f2f871be/pytest-mongo-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "ae9040b016926e72704bc83baea53492", "sha256": "d8aa1780e13291f6f162a6758dace0d127a5ea024e05e6cc8d2b315953a04121" }, "downloads": -1, "filename": "pytest_mongo-1.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ae9040b016926e72704bc83baea53492", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11247, "upload_time": "2017-05-05T22:20:32", "url": "https://files.pythonhosted.org/packages/32/8b/b7adda1ffa575cf52583f59828b7a13d76060032622ef788da995058e9e4/pytest_mongo-1.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "53e98355eeb320e29831dff835dfafe6", "sha256": "593347f2c2851623bf822bbb1f9cf7119dacfd5bf68e0fd509f4d0ad4fb3cbda" }, "downloads": -1, "filename": "pytest-mongo-1.1.2.tar.gz", "has_sig": false, "md5_digest": "53e98355eeb320e29831dff835dfafe6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7769, "upload_time": "2017-05-05T22:20:33", "url": "https://files.pythonhosted.org/packages/8a/36/3a22c728d73df8e74e5ef9552ace76337ee3576164e45d44a9e43184c5ac/pytest-mongo-1.1.2.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "988473670b60c8d17e6286c057866a56", "sha256": "eef5dbea625502d4212a8c94cb943df879a2e9ce6ebc7a34cb6ef2df01b63b5b" }, "downloads": -1, "filename": "pytest_mongo-1.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "988473670b60c8d17e6286c057866a56", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8537, "upload_time": "2018-07-13T13:56:46", "url": "https://files.pythonhosted.org/packages/aa/ff/32022d3fe494a5ab96004b2bae939baa063b0e73b94af63e0ffade9f0f30/pytest_mongo-1.2.0-py2.py3-none-any.whl" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "3b037bad746692b45b2cc56a9d965902", "sha256": "42f8f8a35f9594a9060e60fc9efe23779d639c446364f725cd277d4f251f2aab" }, "downloads": -1, "filename": "pytest_mongo-1.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3b037bad746692b45b2cc56a9d965902", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8549, "upload_time": "2018-07-14T19:13:05", "url": "https://files.pythonhosted.org/packages/1c/11/b24777ed48860d4e654d8aa298d2b0f8d0eefc060f04087c612661af536c/pytest_mongo-1.2.1-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3b037bad746692b45b2cc56a9d965902", "sha256": "42f8f8a35f9594a9060e60fc9efe23779d639c446364f725cd277d4f251f2aab" }, "downloads": -1, "filename": "pytest_mongo-1.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3b037bad746692b45b2cc56a9d965902", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8549, "upload_time": "2018-07-14T19:13:05", "url": "https://files.pythonhosted.org/packages/1c/11/b24777ed48860d4e654d8aa298d2b0f8d0eefc060f04087c612661af536c/pytest_mongo-1.2.1-py2.py3-none-any.whl" } ] }