RAPTOR v18.4: Исправлена отчетность, активированы выходные

This commit is contained in:
root
2026-04-18 23:26:45 +03:00
commit ef0958239e
312 changed files with 54247 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
from functools import wraps
import pytest
def skip_when(
exception_type,
is_error_message_expected,
reason="Skipping because of the exception",
):
def decorator_func(f):
@wraps(f)
def wrapper(*args, **kwargs):
try:
return f(*args, **kwargs)
except exception_type as error:
if is_error_message_expected(str(error)):
pytest.skip(reason)
else:
raise error
return wrapper
return decorator_func