mirror of
https://github.com/chatmail/core.git
synced 2026-04-29 03:16:29 +03:00
fix --ignored handling
This commit is contained in:
@@ -74,6 +74,9 @@ def pytest_configure(config):
|
|||||||
|
|
||||||
@pytest.hookimpl(hookwrapper=True)
|
@pytest.hookimpl(hookwrapper=True)
|
||||||
def pytest_runtest_setup(self, item):
|
def pytest_runtest_setup(self, item):
|
||||||
|
if item.get_closest_marker("ignored"):
|
||||||
|
if not item.config.getvalue("ignored"):
|
||||||
|
pytest.skip("use --ignored to run this test")
|
||||||
self.enable_logging(item)
|
self.enable_logging(item)
|
||||||
yield
|
yield
|
||||||
self.disable_logging(item)
|
self.disable_logging(item)
|
||||||
|
|||||||
Reference in New Issue
Block a user