Skip to content

Commit 9fcbb4c

Browse files
committed
Fix tests/test_inventory_class_mapping.py to actually parametrize config
1 parent a3e1476 commit 9fcbb4c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_inventory_class_mapping.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def test_inventory_class_mappings(compose_node_name, class_mappings_match_path):
1919
config_options = {
2020
"nodes_uri": "nodes",
2121
"classes_uri": "classes",
22-
"compose_node_name": True,
22+
"compose_node_name": compose_node_name,
2323
"class_mappings": [
2424
"\\* common",
2525
"* defaults",
@@ -32,7 +32,7 @@ def test_inventory_class_mappings(compose_node_name, class_mappings_match_path):
3232
"/^test.*-stg-test.*/ cluster.staging",
3333
"/.*c$/ class1 class2",
3434
],
35-
"class_mappings_match_path": False,
35+
"class_mappings_match_path": class_mappings_match_path,
3636
}
3737
c = reclass_rs.Config.from_dict("./tests/inventory-class-mapping", config_options)
3838
assert c is not None

0 commit comments

Comments
 (0)