Big change in config and skip mechanism
diff --git a/cvp_checks/tests/test_mtu.py b/cvp_checks/tests/test_mtu.py
index f3c3511..be17237 100644
--- a/cvp_checks/tests/test_mtu.py
+++ b/cvp_checks/tests/test_mtu.py
@@ -1,14 +1,17 @@
import pytest
import json
from cvp_checks import utils
+import os
@pytest.mark.parametrize(
"group",
- utils.get_groups(utils.get_configuration(__file__))
+ utils.get_groups(os.path.basename(__file__))
)
def test_mtu(local_salt_client, group):
- config = utils.get_configuration(__file__)
+ if "skipped" in group:
+ pytest.skip("skipped in config")
+ config = utils.get_configuration()
skipped_ifaces = config["skipped_ifaces"]
total = {}
network_info = local_salt_client.cmd(