We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0dc494c commit d09436bCopy full SHA for d09436b
1 file changed
src/robot/parsing/lexer/settings.py
@@ -112,9 +112,19 @@ def _format_name(self, name):
112
113
@property
114
def template_set(self):
115
- # FIXME: Should look at the values as well
116
- return (self.settings['TEMPLATE'] or
117
- self.parent.settings['TEST TEMPLATE'])
+ test_template = self.settings['TEMPLATE']
+ if self._has_override_value(test_template):
+ return False
118
+ parent_template = self.parent.settings['TEST TEMPLATE']
119
+ return self._has_value(test_template) or self._has_value(parent_template)
120
+
121
+ def _has_override_value(self, template):
122
+ if template is None:
123
124
+ return template == [] or template[0].value.upper() == 'NONE'
125
126
+ def _has_value(self, template):
127
+ return template and template[0].value
128
129
130
class KeywordSettings(Settings):
0 commit comments