mirror of
https://github.com/chatmail/core.git
synced 2026-04-05 23:22:11 +03:00
fix --ignored handling
This commit is contained in:
@@ -74,6 +74,9 @@ def pytest_configure(config):
|
||||
|
||||
@pytest.hookimpl(hookwrapper=True)
|
||||
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)
|
||||
yield
|
||||
self.disable_logging(item)
|
||||
|
||||
Reference in New Issue
Block a user