mirror of
https://github.com/logos-blockchain/logos-blockchain-e2e-tests.git
synced 2026-01-03 21:53:08 +00:00
fix: access response.content
This commit is contained in:
parent
578efed150
commit
536864e168
@ -35,7 +35,8 @@ class StepsDataAvailability(StepsCommon):
|
|||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
assert "Bad Request" in str(ex) or "Internal Server Error" in str(ex)
|
assert "Bad Request" in str(ex) or "Internal Server Error" in str(ex)
|
||||||
|
|
||||||
# Extract data ss string for each index in the received order
|
# Extract data as a string for each index in the received order
|
||||||
response = response_bytes.decode("utf-8")
|
parsed_data = []
|
||||||
parsed_data = json.loads(response)
|
for item in response_bytes.content:
|
||||||
return [item[1] for item in parsed_data]
|
parsed_data.append(item.decode("utf-8"))
|
||||||
|
return parsed_data
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user