pytest-skip-markers


Namepytest-skip-markers JSON
Version 1.5.2 PyPI version JSON
download
home_pagehttps://github.com/saltstack/pytest-skip-markers
SummaryPytest Salt Plugin
upload_time2024-08-09 17:07:25
maintainerNone
docs_urlNone
authorPedro Algarvio
requires_python>=3.8
licenseApache Software License 2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            .. image:: https://img.shields.io/github/workflow/status/saltstack/pytest-skip-markers/CI?style=plastic
   :target: https://github.com/saltstack/pytest-skip-markers/actions/workflows/testing.yml
   :alt: CI


.. image:: https://readthedocs.org/projects/pytest-skip-markers/badge/?style=plastic
   :target: https://pytest-skip-markers.readthedocs.io
   :alt: Docs


.. image:: https://img.shields.io/codecov/c/github/saltstack/pytest-skip-markers?style=plastic&token=CqV7t0yKTb
   :target: https://codecov.io/gh/saltstack/pytest-skip-markers
   :alt: Codecov


.. image:: https://img.shields.io/pypi/pyversions/pytest-skip-markers?style=plastic
   :target: https://pypi.org/project/pytest-skip-markers
   :alt: Python Versions


.. image:: https://img.shields.io/pypi/wheel/pytest-skip-markers?style=plastic
   :target: https://pypi.org/project/pytest-skip-markers
   :alt: Python Wheel


.. image:: https://img.shields.io/badge/code%20style-black-000000.svg?style=plastic
   :target: https://github.com/psf/black
   :alt: Code Style: black


.. image:: https://img.shields.io/pypi/l/pytest-skip-markers?style=plastic
   :alt: PyPI - License


..
   include-starts-here

====================
What is Skip Markers
====================

This pytest plugin was extracted from `pytest-salt-factories`_. It's a collection of
of useful skip markers created to simplify and reduce code required to skip tests in
some common scenarios, for example, platform specific tests.

.. _pytest-salt-factories: https://github.com/saltstack/pytest-salt-factories


Install
=======

Installing Skip Markers is as simple as:

.. code-block:: bash

   python -m pip install pytest-skip-markers


And, that's honestly it.


Usage
=====

Once installed, you can now skip some tests with some simple pytest markers, for example.

.. code-block:: python

   import pytest


   @pytest.mark.skip_unless_on_linux
   def test_on_linux():
       assert True


Contributing
============

The pytest-skip-markers project team welcomes contributions from the community.
For more detailed information, refer to `CONTRIBUTING`_.

.. _CONTRIBUTING: https://github.com/saltstack/pytest-skip-markers/blob/main/CONTRIBUTING.md

..
   include-ends-here

Documentation
=============

The full documentation can be seen `here <https://pytest-skip-markers.readthedocs.io>`_.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/saltstack/pytest-skip-markers",
    "name": "pytest-skip-markers",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "Pedro Algarvio",
    "author_email": "pedro@algarvio.me",
    "download_url": "https://files.pythonhosted.org/packages/27/8b/15c961e983eb3f71d277679cfe93c1c0cd698507c461f90208d80252534f/pytest_skip_markers-1.5.2.tar.gz",
    "platform": "unix",
    "description": ".. image:: https://img.shields.io/github/workflow/status/saltstack/pytest-skip-markers/CI?style=plastic\n   :target: https://github.com/saltstack/pytest-skip-markers/actions/workflows/testing.yml\n   :alt: CI\n\n\n.. image:: https://readthedocs.org/projects/pytest-skip-markers/badge/?style=plastic\n   :target: https://pytest-skip-markers.readthedocs.io\n   :alt: Docs\n\n\n.. image:: https://img.shields.io/codecov/c/github/saltstack/pytest-skip-markers?style=plastic&token=CqV7t0yKTb\n   :target: https://codecov.io/gh/saltstack/pytest-skip-markers\n   :alt: Codecov\n\n\n.. image:: https://img.shields.io/pypi/pyversions/pytest-skip-markers?style=plastic\n   :target: https://pypi.org/project/pytest-skip-markers\n   :alt: Python Versions\n\n\n.. image:: https://img.shields.io/pypi/wheel/pytest-skip-markers?style=plastic\n   :target: https://pypi.org/project/pytest-skip-markers\n   :alt: Python Wheel\n\n\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg?style=plastic\n   :target: https://github.com/psf/black\n   :alt: Code Style: black\n\n\n.. image:: https://img.shields.io/pypi/l/pytest-skip-markers?style=plastic\n   :alt: PyPI - License\n\n\n..\n   include-starts-here\n\n====================\nWhat is Skip Markers\n====================\n\nThis pytest plugin was extracted from `pytest-salt-factories`_. It's a collection of\nof useful skip markers created to simplify and reduce code required to skip tests in\nsome common scenarios, for example, platform specific tests.\n\n.. _pytest-salt-factories: https://github.com/saltstack/pytest-salt-factories\n\n\nInstall\n=======\n\nInstalling Skip Markers is as simple as:\n\n.. code-block:: bash\n\n   python -m pip install pytest-skip-markers\n\n\nAnd, that's honestly it.\n\n\nUsage\n=====\n\nOnce installed, you can now skip some tests with some simple pytest markers, for example.\n\n.. code-block:: python\n\n   import pytest\n\n\n   @pytest.mark.skip_unless_on_linux\n   def test_on_linux():\n       assert True\n\n\nContributing\n============\n\nThe pytest-skip-markers project team welcomes contributions from the community.\nFor more detailed information, refer to `CONTRIBUTING`_.\n\n.. _CONTRIBUTING: https://github.com/saltstack/pytest-skip-markers/blob/main/CONTRIBUTING.md\n\n..\n   include-ends-here\n\nDocumentation\n=============\n\nThe full documentation can be seen `here <https://pytest-skip-markers.readthedocs.io>`_.\n",
    "bugtrack_url": null,
    "license": "Apache Software License 2.0",
    "summary": "Pytest Salt Plugin",
    "version": "1.5.2",
    "project_urls": {
        "Documentation": "https://pytest-skip-markers.readthedocs.io",
        "Homepage": "https://github.com/saltstack/pytest-skip-markers",
        "Source": "https://github.com/saltstack/pytest-skip-markers",
        "Tracker": "https://github.com/saltstack/pytest-skip-markers/issues"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "04c3de4b07aa387e5e529d4c095e39cc665eb67588c321e489f632ace5015c5c",
                "md5": "d9efe83172d68169d743abe489cad0d8",
                "sha256": "416be63bebacb3c17020d6a65b4306cb685161a2071ca5e7a7df529627f7e0f7"
            },
            "downloads": -1,
            "filename": "pytest_skip_markers-1.5.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d9efe83172d68169d743abe489cad0d8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 20167,
            "upload_time": "2024-08-09T17:07:24",
            "upload_time_iso_8601": "2024-08-09T17:07:24.230938Z",
            "url": "https://files.pythonhosted.org/packages/04/c3/de4b07aa387e5e529d4c095e39cc665eb67588c321e489f632ace5015c5c/pytest_skip_markers-1.5.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "278b15c961e983eb3f71d277679cfe93c1c0cd698507c461f90208d80252534f",
                "md5": "a2b0ad4104b95eda2a928c60a4ebff13",
                "sha256": "76d61be67f1fd639cca37830a4756b09cea5521361616e66344f7ef00b4d06c0"
            },
            "downloads": -1,
            "filename": "pytest_skip_markers-1.5.2.tar.gz",
            "has_sig": false,
            "md5_digest": "a2b0ad4104b95eda2a928c60a4ebff13",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 75342,
            "upload_time": "2024-08-09T17:07:25",
            "upload_time_iso_8601": "2024-08-09T17:07:25.732620Z",
            "url": "https://files.pythonhosted.org/packages/27/8b/15c961e983eb3f71d277679cfe93c1c0cd698507c461f90208d80252534f/pytest_skip_markers-1.5.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-09 17:07:25",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "saltstack",
    "github_project": "pytest-skip-markers",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "lcname": "pytest-skip-markers"
}
        
Elapsed time: 0.31562s