import pytest from Utils import yaml_handler from Utils import req_handler from TestData.setting.macro_test_data import macroData class TestMacro: yaml_path = r'setting/macro.yaml' yaml_data = yaml_handler.yaml_handler.get_case(yaml_path) @pytest.mark.flaky(reruns=macroData.rerun, reruns_delay=macroData.rerun_delay) @pytest.mark.parametrize('case',yaml_data) def test_macro(self,case): req_handler.ReqHandler.send_requests(case=case,var_class=macroData)