pytest-dryrun


Namepytest-dryrun JSON
Version 0.1.0 PyPI version JSON
download
home_page
SummaryA Pytest plugin to ignore tests during collection without reporting them in the test summary.
upload_time2023-07-11 13:30:55
maintainer
docs_urlNone
authorMiguel Guthridge
requires_python>=3.9,<4.0
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Pytest Dryrun Plugin

A Pytest plugin to ignore tests during collection without reporting them in the
test summary.

## Usage

When the `--dryrun` flag is passed to Pytest, only tests marked with `dryrun`
will be collected and run.

```py
@pytest.mark.dryrun
def test_thing_one():
    """This test will be run, even during dryruns"""
    box = get_box()
    assert "thing one" in box

def test_thing_two():
    """This test will not by run if the `--dryrun` flag is given to Pytest"""
    box = get_box()
    assert "thing two" in box
```

If the `--no-dryrun` flag is given, only tests not marked with `dryrun` will be
collected, meaning that in the example above, only `test_thing_two` will be
run.

The `--dryrun` and `--no-dryrun` arguments are mutually-exclusive.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "pytest-dryrun",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9,<4.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "Miguel Guthridge",
    "author_email": "hdsq@outlook.com.au",
    "download_url": "https://files.pythonhosted.org/packages/b7/b5/1ea56193cf2efaf8373d572a0c54d9718096aa9aca0a03f23aa9f6c46245/pytest_dryrun-0.1.0.tar.gz",
    "platform": null,
    "description": "# Pytest Dryrun Plugin\n\nA Pytest plugin to ignore tests during collection without reporting them in the\ntest summary.\n\n## Usage\n\nWhen the `--dryrun` flag is passed to Pytest, only tests marked with `dryrun`\nwill be collected and run.\n\n```py\n@pytest.mark.dryrun\ndef test_thing_one():\n    \"\"\"This test will be run, even during dryruns\"\"\"\n    box = get_box()\n    assert \"thing one\" in box\n\ndef test_thing_two():\n    \"\"\"This test will not by run if the `--dryrun` flag is given to Pytest\"\"\"\n    box = get_box()\n    assert \"thing two\" in box\n```\n\nIf the `--no-dryrun` flag is given, only tests not marked with `dryrun` will be\ncollected, meaning that in the example above, only `test_thing_two` will be\nrun.\n\nThe `--dryrun` and `--no-dryrun` arguments are mutually-exclusive.\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A Pytest plugin to ignore tests during collection without reporting them in the test summary.",
    "version": "0.1.0",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "45e3b62556c6e523b09085380f3c8879ee252467e3de048e959ba17d44a6e700",
                "md5": "7a419add26da9ddb6329ea67fb4368b7",
                "sha256": "802096b39c2e8d497f592dd7b5f7db243388ca65683cadc232a156e310c51d1d"
            },
            "downloads": -1,
            "filename": "pytest_dryrun-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7a419add26da9ddb6329ea67fb4368b7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9,<4.0",
            "size": 2621,
            "upload_time": "2023-07-11T13:30:54",
            "upload_time_iso_8601": "2023-07-11T13:30:54.113096Z",
            "url": "https://files.pythonhosted.org/packages/45/e3/b62556c6e523b09085380f3c8879ee252467e3de048e959ba17d44a6e700/pytest_dryrun-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b7b51ea56193cf2efaf8373d572a0c54d9718096aa9aca0a03f23aa9f6c46245",
                "md5": "202ed51aa10c2ecd59d36fdcfd3b0f6e",
                "sha256": "c66906a1c9b261d226921d191e7a608936f2f1858b8c7d6ab11fb6032f5b0d41"
            },
            "downloads": -1,
            "filename": "pytest_dryrun-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "202ed51aa10c2ecd59d36fdcfd3b0f6e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9,<4.0",
            "size": 1750,
            "upload_time": "2023-07-11T13:30:55",
            "upload_time_iso_8601": "2023-07-11T13:30:55.791216Z",
            "url": "https://files.pythonhosted.org/packages/b7/b5/1ea56193cf2efaf8373d572a0c54d9718096aa9aca0a03f23aa9f6c46245/pytest_dryrun-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-11 13:30:55",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "pytest-dryrun"
}
        
Elapsed time: 0.08847s