pytest-skip-markers


Namepytest-skip-markers JSON
Version 1.5.1 PyPI version JSON
download
home_pagehttps://github.com/saltstack/pytest-skip-markers
SummaryPytest Salt Plugin
upload_time2024-01-04 14:27:48
maintainer
docs_urlNone
authorPedro Algarvio
requires_python>=3.7
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": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "",
    "author": "Pedro Algarvio",
    "author_email": "pedro@algarvio.me",
    "download_url": "https://files.pythonhosted.org/packages/ba/cd/eb9337df671181763c5533ee00903c6ed4c3a1f96f9c81565af5f99116eb/pytest-skip-markers-1.5.1.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.1",
    "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": "edea105d55dce620777edfc516bc8ee66a6048eaace45a849b25dd414c3bfbee",
                "md5": "7a48227c92f71844e099c058499b8884",
                "sha256": "9e3f5ede6e1e6d6dc65e83136e9335abe7d5c4f2f55b94b4fb83d3da5b8d8f0c"
            },
            "downloads": -1,
            "filename": "pytest_skip_markers-1.5.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7a48227c92f71844e099c058499b8884",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 20117,
            "upload_time": "2024-01-04T14:27:46",
            "upload_time_iso_8601": "2024-01-04T14:27:46.692396Z",
            "url": "https://files.pythonhosted.org/packages/ed/ea/105d55dce620777edfc516bc8ee66a6048eaace45a849b25dd414c3bfbee/pytest_skip_markers-1.5.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bacdeb9337df671181763c5533ee00903c6ed4c3a1f96f9c81565af5f99116eb",
                "md5": "d734601cfc6e07e8d131a9dfa5be7237",
                "sha256": "b208b6b804a320691f9e3a0d0721345a8710b9791c4324499294b6a8e4b0e82b"
            },
            "downloads": -1,
            "filename": "pytest-skip-markers-1.5.1.tar.gz",
            "has_sig": false,
            "md5_digest": "d734601cfc6e07e8d131a9dfa5be7237",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 75042,
            "upload_time": "2024-01-04T14:27:48",
            "upload_time_iso_8601": "2024-01-04T14:27:48.664979Z",
            "url": "https://files.pythonhosted.org/packages/ba/cd/eb9337df671181763c5533ee00903c6ed4c3a1f96f9c81565af5f99116eb/pytest-skip-markers-1.5.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-04 14:27:48",
    "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.21547s