From bf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0 Mon Sep 17 00:00:00 2001 From: alexv-smirnov Date: Tue, 13 Jun 2023 11:05:01 +0300 Subject: add ymake export to ydb --- library/python/pytest/plugins/ya.make | 32 +++++++++++++++++++++++++++++++ library/python/pytest/ut/ya.make | 14 ++++++++++++++ library/python/pytest/ya.make | 36 +++++++++++++++++++++++++++++++++++ 3 files changed, 82 insertions(+) create mode 100644 library/python/pytest/plugins/ya.make create mode 100644 library/python/pytest/ut/ya.make create mode 100644 library/python/pytest/ya.make (limited to 'library/python/pytest') diff --git a/library/python/pytest/plugins/ya.make b/library/python/pytest/plugins/ya.make new file mode 100644 index 00000000000..41e20f6e2f0 --- /dev/null +++ b/library/python/pytest/plugins/ya.make @@ -0,0 +1,32 @@ +PY23_LIBRARY() + +PY_SRCS( + ya.py + collection.py + conftests.py + fixtures.py + metrics.py +) + +PEERDIR( + library/python/filelock + library/python/find_root + library/python/testing/filter + library/python/testing/yatest_common +) + +IF (PYTHON2) + PY_SRCS( + fakeid_py2.py + ) + + PEERDIR( + contrib/deprecated/python/faulthandler + ) +ELSE() + PY_SRCS( + fakeid_py3.py + ) +ENDIF() + +END() diff --git a/library/python/pytest/ut/ya.make b/library/python/pytest/ut/ya.make new file mode 100644 index 00000000000..bb94c24c70b --- /dev/null +++ b/library/python/pytest/ut/ya.make @@ -0,0 +1,14 @@ +PY23_TEST() + +TEST_SRCS( + test_tools.py +) + +PEERDIR( + contrib/python/pytest-mock + library/python/pytest +) + +STYLE_PYTHON() + +END() diff --git a/library/python/pytest/ya.make b/library/python/pytest/ya.make new file mode 100644 index 00000000000..b04788cc472 --- /dev/null +++ b/library/python/pytest/ya.make @@ -0,0 +1,36 @@ +PY23_LIBRARY() + +PY_SRCS( + __init__.py + config.py + context.py + main.py + rewrite.py + yatest_tools.py +) + +PEERDIR( + contrib/python/python-dateutil + contrib/python/ipdb + contrib/python/py + contrib/python/pytest + contrib/python/requests + library/python/pytest/plugins + library/python/testing/yatest_common + library/python/testing/yatest_lib +) + +IF (NOT OPENSOURCE) + PEERDIR(contrib/tools/gprof2dot) +ENDIF() + +RESOURCE_FILES( + PREFIX library/python/pytest/ + pytest.yatest.ini +) + +END() + +RECURSE_FOR_TESTS( + ut +) -- cgit v1.3