import pytest from Utils import yaml_handler from Utils import req_handler from TestData.setting.whatsapp_integration_test_data import whatsappIntegrationData class TestWhatsappIntegration: yaml_path = r'setting/whatsappIntegration.yaml' yaml_data = yaml_handler.yaml_handler.get_case(yaml_path) @pytest.mark.flaky(reruns=whatsappIntegrationData.rerun, reruns_delay=whatsappIntegrationData.rerun_delay) @pytest.mark.parametrize('case',yaml_data) def test_whatsappIntegration(self,case): print(case) req_handler.ReqHandler.send_requests(case=case,var_class=whatsappIntegrationData)