@@ -24,8 +24,7 @@ class TestParser(BaseMultiFileParser):
2424 Parser for Test objects.
2525
2626 Attributes
27- test_template_mapping (Dict[str, TestTemplate]): Mapping of test template
28- names to TestTemplate objects.
27+ test_template_mapping (Dict[str, TestTemplate]): Mapping of test template names to TestTemplate objects.
2928 """
3029
3130 __test__ = False
@@ -40,8 +39,7 @@ def __init__(
4039
4140 Args:
4241 directory_path (str): Path to the directory containing test data.
43- test_template_mapping (Dict[str, TestTemplate]): Mapping of test
44- template names to TestTemplate objects.
42+ test_template_mapping (Dict[str, TestTemplate]): Mapping of test template names to TestTemplate objects.
4543 """
4644 super ().__init__ (directory_path )
4745 self .test_template_mapping : Dict [str , TestTemplate ] = test_template_mapping
@@ -99,12 +97,11 @@ def _flatten_template_dict_keys(self, nested_args: Dict[str, Any], parent_key: s
9997 """
10098 Recursively flattens the nested dictionary structure from the test template.
10199
102- Includes keys with 'default' and 'values' as valid keys, while ignoring
103- keys that specifically end with 'default' or 'values'.
100+ Includes keys with 'default' and 'values' as valid keys, while ignoring keys that specifically end with
101+ 'default' or 'values'.
104102
105103 Args:
106- nested_args (Dict[str, Any]): Nested argument structure from the test
107- template.
104+ nested_args (Dict[str, Any]): Nested argument structure from the test template.
108105 parent_key (str): Parent key for nested arguments.
109106
110107 Returns:
@@ -132,8 +129,7 @@ def _validate_args(self, args: Dict[str, Any], valid_keys: Set[str]) -> None:
132129
133130 Args:
134131 args (Dict[str, Any]): Arguments provided in the TOML configuration.
135- valid_keys (Set[str]): Set of valid keys from the flattened template
136- arguments.
132+ valid_keys (Set[str]): Set of valid keys from the flattened template arguments.
137133
138134 Raises:
139135 ValueError: If an argument is not defined in the TestTemplate's arguments.
0 commit comments