Introduce parametrized fixture for collecting groups
diff --git a/cvp_checks/fixtures/base.py b/cvp_checks/fixtures/base.py
index f1893fa..85313d0 100644
--- a/cvp_checks/fixtures/base.py
+++ b/cvp_checks/fixtures/base.py
@@ -2,6 +2,12 @@
import cvp_checks.utils as utils
-@pytest.fixture
+@pytest.fixture(scope='session')
def local_salt_client():
return utils.init_salt_client()
+
+nodes = utils.calculate_groups()
+
+@pytest.fixture(scope='session', params=nodes.values(), ids=nodes.keys())
+def nodes_in_group(request):
+ return request.param