From a7f7e2ab140392b5c669fa69b6156c48fd156872 Mon Sep 17 00:00:00 2001 From: Katie Byers Date: Mon, 12 Oct 2020 06:43:06 -0700 Subject: [PATCH] feat(test): Add `only` pytest marker (#852) This adds a pytest marker similar to `it.only` in jest. --- pytest.ini | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pytest.ini b/pytest.ini index 19cf3a00e8..4e440e2a47 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,4 +1,6 @@ [pytest] DJANGO_SETTINGS_MODULE = tests.integrations.django.myapp.settings addopts = --tb=short -markers = tests_internal_exceptions +markers = + tests_internal_exceptions + only: A temporary marker, to make pytest only run the tests with the mark, similar to jest's `it.only`. To use, run `pytest -v -m only`.