import pytest from Utils import yaml_handler from Utils import req_handler from TestData.automation.template_test_data import templateData class TestTemplate: yaml_path = r'automation/template.yaml' yaml_data = yaml_handler.yaml_handler.get_case(yaml_path) @pytest.mark.flaky(reruns=templateData.rerun, reruns_delay=templateData.rerun_delay) @pytest.mark.parametrize('case',yaml_data) def test_template(self,case): req_handler.ReqHandler.send_requests(case=case,var_class=templateData)