aboutsummaryrefslogtreecommitdiffstats
path: root/test/security/check_versions/tests/conftest.py
blob: 7c3e2e1718f410f69b0dce91c02b2afb22d797bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env python3

import pytest


def pod_name_trimmer_fun(pod_name):
    return "-".join(pod_name.split("-")[:-2])


@pytest.fixture
def pod_name_trimmer():
    return pod_name_trimmer_fun