[#103] Make allure treat same test differently

This commit is contained in:
Andrey Berezin 2023-10-10 19:17:18 +03:00 committed by Andrey Berezin
parent 1d22162d2f
commit b3c24828d3

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