pytest-gevent


Namepytest-gevent JSON
Version 1.1.0 PyPI version JSON
download
home_pagehttps://github.com/asottile/pytest-gevent
SummaryEnsure that gevent is properly patched when invoking pytest
upload_time2020-02-25 00:06:38
maintainer
docs_urlNone
authorAnthony Sottile
requires_python>=3.6.1
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![Build Status](https://dev.azure.com/asottile/asottile/_apis/build/status/asottile.pytest-gevent?branchName=master)](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=54&branchName=master)
[![Azure DevOps coverage](https://img.shields.io/azure-devops/coverage/asottile/asottile/54/master.svg)](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=54&branchName=master)

pytest-gevent
=============

Ensure that gevent is properly patched when invoking pytest

## installation

`pip install pytest-gevent`

## usage

wherever you'd use `pytest`, use `pytest-gevent` instead.

### disabling specific patches

you can disable specific [gevent patches] through environment variables.  for
example, if you wanted to disable the `ssl` patch you would invoke:

```bash
PYTEST_GEVENT_PATCH_ALL_NO_SSL=1 pytest-gevent
```

[gevent patches]: http://www.gevent.org/api/gevent.monkey.html#gevent.monkey.patch_all

## how this works

this calls `gevent.monkey.patch_all(...)` and then `pytest.main()`

## alternatives

`gevent.monkey` provides a cli directly, though it's quite clunky to use

```bash
python -m gevent.monkey $(which pytest) ...
# with gevent 1.5+ you'll be able to do
# python -m gevent.monkey --module pytest ...
```



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/asottile/pytest-gevent",
    "name": "pytest-gevent",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6.1",
    "maintainer_email": "",
    "keywords": "",
    "author": "Anthony Sottile",
    "author_email": "asottile@umich.edu",
    "download_url": "https://files.pythonhosted.org/packages/ab/49/cbed2ecff68e851a454437e7a80f05e483409eff3a6bef9fab31038d4018/pytest_gevent-1.1.0.tar.gz",
    "platform": "",
    "description": "[![Build Status](https://dev.azure.com/asottile/asottile/_apis/build/status/asottile.pytest-gevent?branchName=master)](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=54&branchName=master)\n[![Azure DevOps coverage](https://img.shields.io/azure-devops/coverage/asottile/asottile/54/master.svg)](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=54&branchName=master)\n\npytest-gevent\n=============\n\nEnsure that gevent is properly patched when invoking pytest\n\n## installation\n\n`pip install pytest-gevent`\n\n## usage\n\nwherever you'd use `pytest`, use `pytest-gevent` instead.\n\n### disabling specific patches\n\nyou can disable specific [gevent patches] through environment variables.  for\nexample, if you wanted to disable the `ssl` patch you would invoke:\n\n```bash\nPYTEST_GEVENT_PATCH_ALL_NO_SSL=1 pytest-gevent\n```\n\n[gevent patches]: http://www.gevent.org/api/gevent.monkey.html#gevent.monkey.patch_all\n\n## how this works\n\nthis calls `gevent.monkey.patch_all(...)` and then `pytest.main()`\n\n## alternatives\n\n`gevent.monkey` provides a cli directly, though it's quite clunky to use\n\n```bash\npython -m gevent.monkey $(which pytest) ...\n# with gevent 1.5+ you'll be able to do\n# python -m gevent.monkey --module pytest ...\n```\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Ensure that gevent is properly patched when invoking pytest",
    "version": "1.1.0",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "f547f65ad00ea330e72bd21a861446a9",
                "sha256": "a9d8ea2b6cc7e1e4fe51195194750ce404c1b842a60f045dcc92ce8425309f64"
            },
            "downloads": -1,
            "filename": "pytest_gevent-1.1.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f547f65ad00ea330e72bd21a861446a9",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=3.6.1",
            "size": 3306,
            "upload_time": "2020-02-25T00:06:37",
            "upload_time_iso_8601": "2020-02-25T00:06:37.720590Z",
            "url": "https://files.pythonhosted.org/packages/c0/a2/2874d536e202107b118afc0df8692c7119543666d5231846925198ae8b1a/pytest_gevent-1.1.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "7efcbc21ffd2f2d64954826e94aa4b51",
                "sha256": "8bbf6d7f9db3bae3dc2d7c3d18cfe32efa1568cdf8b624348e92f64c0b857581"
            },
            "downloads": -1,
            "filename": "pytest_gevent-1.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "7efcbc21ffd2f2d64954826e94aa4b51",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6.1",
            "size": 2763,
            "upload_time": "2020-02-25T00:06:38",
            "upload_time_iso_8601": "2020-02-25T00:06:38.846882Z",
            "url": "https://files.pythonhosted.org/packages/ab/49/cbed2ecff68e851a454437e7a80f05e483409eff3a6bef9fab31038d4018/pytest_gevent-1.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-02-25 00:06:38",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "asottile",
    "github_project": "pytest-gevent",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "tox": true,
    "lcname": "pytest-gevent"
}
        
Elapsed time: 0.02699s