Simplify current tests
[deliverable/barectf.git] / tests / config / yaml / conftest.py
index 1c29e8c33f8e557f14e9cb6cc6ed5aae309ef2c9..e9f9a2691701fde085abbc25433e4e43533efe5f 100644 (file)
@@ -27,13 +27,11 @@ import barectf
 
 
 @pytest.fixture
-def config_fail_test():
-    def func(request, rel_path):
-        yaml_path = os.path.join(os.path.dirname(request.fspath),
-                                 'configs', 'fail', rel_path) + '.yaml'
-        yaml_dir = os.path.dirname(yaml_path)
+def config_fail_test(yaml_cfg_path):
+    def func():
+        yaml_dir = os.path.dirname(yaml_cfg_path)
 
-        with open(yaml_path) as f:
+        with open(yaml_cfg_path) as f:
             with pytest.raises(barectf._ConfigurationParseError):
                 barectf.configuration_from_file(f, inclusion_directories=[yaml_dir])
 
This page took 0.022669 seconds and 4 git commands to generate.