def test_simple_read_from_a_single_file(scalar_dataset, reader_factory):
    """See if we can read data when a single parquet file is specified instead of a parquet directory"""
    assert scalar_dataset.url.startswith('file://')
    path = scalar_dataset.url[len('file://'):]
    one_parquet_file = glob.glob(f'{path}/**.parquet')[0]

    with reader_factory(f"file://{one_parquet_file}") as reader:
        all_data = list(reader)
        assert len(all_data) > 0
See if we can read data when a single parquet file is specified instead of a parquet directory
petastorm/tests/test_parquet_reader.py