def filter_testPlans(self, library):
    ' Filters testplan from library based on:\n        - event type and testplan.artifact_type\n        - testplan execute_on filter\n\n        :param library: pipeline library\n        :type library: tplib.Library\n        :return: Filtered testplans\n        :rtype: list of tplib.TestPlan\n        '
    return library.getTestPlansByQuery('event.handles_testplan_artifact_type(tp.artifact_type) and tp.eval_execute_on(event=event)', event=self)
Filters testplan from library based on:
- event type and testplan.artifact_type
- testplan execute_on filter

:param library: pipeline library
:type library: tplib.Library
:return: Filtered testplans
:rtype: list of tplib.TestPlan
def filter_testPlans(self, library):
    ' Filters testplan from library based on:\n        - event type and testplan.artifact_type\n        - testplan execute_on filter\n\n        :param library: pipeline library\n        :type library: tplib.Library\n        :return: Filtered testplans\n        :rtype: list of tplib.TestPlan\n        '
    return library.getTestPlansByQuery('event.handles_testplan_artifact_type(tp.artifact_type) and tp.eval_execute_on(event=event)', event=self)