mirror of
https://github.com/logos-blockchain/logos-blockchain-e2e-tests.git
synced 2026-01-02 13:13: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:
|
||||
assert "Bad Request" in str(ex) or "Internal Server Error" in str(ex)
|
||||
|
||||
# Extract data ss string for each index in the received order
|
||||
response = response_bytes.decode("utf-8")
|
||||
parsed_data = json.loads(response)
|
||||
return [item[1] for item in parsed_data]
|
||||
# Extract data as a string for each index in the received order
|
||||
parsed_data = []
|
||||
for item in response_bytes.content:
|
||||
parsed_data.append(item.decode("utf-8"))
|
||||
return parsed_data
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user