mirror of
https://github.com/logos-blockchain/logos-blockchain-e2e-tests.git
synced 2026-01-02 21:23:07 +00:00
23 lines
755 B
Python
23 lines
755 B
Python
import pytest
|
|
|
|
from src.libs.custom_logger import get_custom_logger
|
|
from src.steps.da import StepsDataAvailability
|
|
from src.test_data import DATA_TO_DISPERSE
|
|
|
|
logger = get_custom_logger(__name__)
|
|
|
|
|
|
@pytest.mark.usefixtures("setup_main_nodes")
|
|
class TestDataIntegrity(StepsDataAvailability):
|
|
main_nodes = []
|
|
|
|
def test_da_identify_retrieve_missing_columns(self):
|
|
for node in self.main_nodes:
|
|
print(node)
|
|
|
|
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]
|