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