def get_case_ids(items):
    """ Return TestRail ids from pytests markers
    """
    tids = []
    for item in items:
        if item.get_marker('testrail'):
            idmarker = item.get_marker('testrail')
            if idmarker is not None:
                tids.append(idmarker.args[0])
    return tids