From b3c24828d32c41162386437b32495b73d0560092 Mon Sep 17 00:00:00 2001 From: Andrey Berezin Date: Tue, 10 Oct 2023 19:17:18 +0300 Subject: [PATCH] [#103] Make allure treat same test differently --- pytest_tests/testsuites/special/test_logs.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pytest_tests/testsuites/special/test_logs.py b/pytest_tests/testsuites/special/test_logs.py index 13085e34..fa5faf66 100644 --- a/pytest_tests/testsuites/special/test_logs.py +++ b/pytest_tests/testsuites/special/test_logs.py @@ -7,6 +7,15 @@ import pytest from frostfs_testlib.testing.cluster_test_base import ClusterTestBase +def pytest_generate_tests(metafunc: pytest.Metafunc): + metafunc.fixturenames.append("repo") + metafunc.fixturenames.append("markers") + metafunc.parametrize( + "repo, markers", + [("frostfs-testcases", metafunc.config.option.markexpr)], + ) + + class TestLogs(ClusterTestBase): @allure.title("Check logs from frostfs-testcases with marks '{request.config.option.markexpr}'") @pytest.mark.logs_after_session