in modules/testrail.py [0:0]
def matching_configs(self, testrail_project_id, config_group_id, config_name):
"""Given a project id, a config group id, and a config name, return the matching config object"""
configs = self.client.send_get(f"/get_configs/{testrail_project_id}")
matching_group = next(c for c in configs if c.get("id") == config_group_id)
logging.info(f"matching group|| {matching_group}")
cfgs = [
c
for c in matching_group.get("configs")
if config_name == c.get("name").strip()
]
return cfgs