Sometimes we have dicts indexed by integers in yaml tests
This commit is contained in:
@@ -72,7 +72,7 @@ class YamlTestCase(ElasticsearchTestCase):
|
||||
continue
|
||||
step = step.replace('\1', '.')
|
||||
step = self._resolve(step)
|
||||
if step.isdigit():
|
||||
if step.isdigit() and step not in value:
|
||||
step = int(step)
|
||||
self.assertIsInstance(value, list)
|
||||
self.assertGreater(len(value), step)
|
||||
|
||||
Reference in New Issue
Block a user