aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxim Yurchuk <maxim-yurchuk@ydb.tech>2025-04-23 13:45:25 +0000
committerGitHub <noreply@github.com>2025-04-23 15:45:25 +0200
commit6f7b91184dfe0d146a630d91747ae549ee690e37 (patch)
tree4906729663bcc2d3be09d6d9c16774e878ae6fc7
parentdda6ca758fc3fbfe472f61eb29fddedb0e5034b2 (diff)
downloadydb-6f7b91184dfe0d146a630d91747ae549ee690e37.tar.gz
Add skip_with_issue decorator (#17543)
-rw-r--r--ydb/tests/example/test_example.py11
-rw-r--r--ydb/tests/example/ya.make1
-rw-r--r--ydb/tests/library/test_meta/__init__.py4
3 files changed, 15 insertions, 1 deletions
diff --git a/ydb/tests/example/test_example.py b/ydb/tests/example/test_example.py
index 012b7f3ca98..9765430fc2a 100644
--- a/ydb/tests/example/test_example.py
+++ b/ydb/tests/example/test_example.py
@@ -2,11 +2,12 @@
from ydb.tests.library.harness.kikimr_runner import KiKiMR
from ydb.tests.library.harness.kikimr_config import KikimrConfigGenerator
from ydb.tests.library.common.types import Erasure
+from ydb.tests.library.test_meta import skip_with_issue, link_test_case
import ydb
-class TestExample(object):
+class TestExample:
"""
Example for python test
TODO: change description to yours
@@ -67,3 +68,11 @@ class TestExample(object):
There can be more than 1 test in the suite
"""
pass
+
+ @link_test_case("#999999998") # test can be linked with test-case issue in github
+ def test_linked_with_testcase(self):
+ pass
+
+ @skip_with_issue("#999999999") # test can be skipped with github issue
+ def test_skipped_with_issue(self):
+ pass
diff --git a/ydb/tests/example/ya.make b/ydb/tests/example/ya.make
index e0f0351cf57..7a1f0073b71 100644
--- a/ydb/tests/example/ya.make
+++ b/ydb/tests/example/ya.make
@@ -13,6 +13,7 @@ DEPENDS(
PEERDIR(
ydb/tests/library
+ ydb/tests/library/test_meta
)
END()
diff --git a/ydb/tests/library/test_meta/__init__.py b/ydb/tests/library/test_meta/__init__.py
index 3cb3548644f..f1d9fa8982c 100644
--- a/ydb/tests/library/test_meta/__init__.py
+++ b/ydb/tests/library/test_meta/__init__.py
@@ -1,3 +1,7 @@
import pytest
link_test_case = pytest.mark.test_case
+
+
+def skip_with_issue(issue_id):
+ return pytest.mark.skip(reason=issue_id)