From e3eab376e94f18b4e3a8be9e0e25c37189c966b1 Mon Sep 17 00:00:00 2001 From: Markus Linnala Date: Wed, 17 May 2023 22:00:30 +0300 Subject: [PATCH] fix: ssg_test_suite.get_product_context: fake Product Product does not have __setitem__ and here product_yaml is made as dict to mock real product. But we want to change Product for testing. So just update and thus product_yaml type is not changed. --- tests/ssg_test_suite/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ssg_test_suite/common.py b/tests/ssg_test_suite/common.py index 764b9c749765..ddaa204c5b1d 100644 --- a/tests/ssg_test_suite/common.py +++ b/tests/ssg_test_suite/common.py @@ -274,7 +274,7 @@ def get_product_context(product=None): product_yaml = dict() if product: yaml_path = product_yaml_path(SSG_ROOT, product) - product_yaml = load_product_yaml(yaml_path) + product_yaml.update(load_product_yaml(yaml_path)) # We could run into a DocumentationNotComplete error when loading a # rule's YAML contents. However, because the test suite isn't executed