We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a0dae5 commit b0cc74dCopy full SHA for b0cc74d
test_elasticsearch/test_server/test_rest_api_spec.py
@@ -432,11 +432,17 @@ def _lookup(self, path):
432
step = int(step)
433
assert isinstance(value, list)
434
assert len(value) > step
435
+ value = value[step]
436
elif step == "_arbitrary_key_":
437
return list(value.keys())[0]
- else:
438
+ elif (
439
+ isinstance(step, string_types)
440
+ and isinstance(value, dict)
441
+ ):
442
assert step in value
- value = value[step]
443
444
+ else:
445
+ value = step
446
return value
447
448
def _feature_enabled(self, name):
0 commit comments