test: let the test decode data

This commit is contained in:
Roman 2025-01-20 14:37:43 +08:00
parent be897bf95e
commit 77ce25cb0b
No known key found for this signature in database
GPG Key ID: B8FE070B54E11B75
2 changed files with 1 additions and 4 deletions

View File

@ -35,6 +35,4 @@ class StepsDataAvailability(StepsCommon):
except Exception as ex:
assert "Bad Request" in str(ex) or "Internal Server Error" in str(ex)
# Extract data as a string for each index in the received order
# parsed_data = json.loads(response)
return response

View File

@ -18,5 +18,4 @@ class TestDataIntegrity(StepsDataAvailability):
def test_da_sampling_determines_data_presence(self):
self.disperse_data(DATA_TO_DISPERSE[0], [0] * 31 + [1], [0] * 8)
received_data = self.get_data_range([0] * 31 + [1], [0] * 8, [0] * 7 + [5])
logger.debug(f"received data {received_data}")
assert DATA_TO_DISPERSE[0] == received_data[0]
assert DATA_TO_DISPERSE[0] == received_data[0][1].decode("utf-8")