simplify line in generate_json_api.py

This commit is contained in:
Lex Berezhny 2019-10-26 00:57:51 -04:00
parent d227660d6c
commit ccf55bcd01

View file

@ -325,11 +325,10 @@ class Examples(CommandTestCase):
# files # files
file_list_result = await r( file_list_result = (await r(
'List local files', 'List local files',
'file', 'list' 'file', 'list'
) ))['items']
file_list_result = file_list_result.get('items')
file_uri = f"{file_list_result[0]['claim_name']}#{file_list_result[0]['claim_id']}" file_uri = f"{file_list_result[0]['claim_name']}#{file_list_result[0]['claim_id']}"
await r( await r(
'Resolve a claim', 'Resolve a claim',