[#103] Make allure treat same test differently

master
Andrey Berezin 2023-10-10 19:17:18 +03:00 committed by Andrey Berezin
parent 1d22162d2f
commit b3c24828d3
1 changed files with 9 additions and 0 deletions

View File

@ -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