{"library":"pytest-only","title":"pytest-only","description":"Pytest plugin that provides an @pytest.mark.only decorator to run a single test exclusively, ignoring all others. Current version 2.1.2, requires Python >=3.8, <4.0. Compatible with flake8 and pylint plugins to detect lingering only marks.","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install pytest-only"],"cli":null},"imports":["import pytest; @pytest.mark.only"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import pytest\n\ndef test_always():\n    assert 1 == 1\n\n@pytest.mark.only\ndef test_only_this():\n    assert 1 == 1\n\ndef test_never():\n    assert 1 == 2","lang":"python","description":"The @pytest.mark.only decorator causes pytest to skip all other tests and run only the marked test.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}