numpydantic/tests/test_interface/conftest.py

21 lines
520 B
Python

import pytest
import numpy as np
import dask.array as da
from numpydantic import interface
from tests.fixtures import hdf5_array
@pytest.fixture(
scope="function",
params=[
([[1, 2], [3, 4]], interface.NumpyInterface),
(np.zeros((3, 4)), interface.NumpyInterface),
(hdf5_array, interface.H5Interface),
(da.random.random((10, 10)), interface.DaskInterface),
],
ids=["numpy_list", "numpy", "H5ArrayPath", "dask"],
)
def interface_type(request):
return request.param