ktongue's picture
download
raw
1.18 kB
import pytest
@pytest.fixture(params=[True, False])
def check_dtype(request):
"""
Fixture returning `True` or `False`, determining whether to check
if the `dtype` is identical or not, when comparing two data structures,
e.g. `Series`, `SparseArray` or `DataFrame`.
"""
return request.param
@pytest.fixture(params=[True, False])
def check_exact(request):
"""
Fixture returning `True` or `False`, determining whether to
compare floating point numbers exactly or not.
"""
return request.param
@pytest.fixture(params=[True, False])
def check_index_type(request):
"""
Fixture returning `True` or `False`, determining whether to check
if the `Index` types are identical or not.
"""
return request.param
@pytest.fixture(params=[0.5e-3, 0.5e-5])
def rtol(request):
"""
Fixture returning 0.5e-3 or 0.5e-5. Those values are used as relative tolerance.
"""
return request.param
@pytest.fixture(params=[True, False])
def check_categorical(request):
"""
Fixture returning `True` or `False`, determining whether to
compare internal `Categorical` exactly or not.
"""
return request.param

Xet Storage Details

Size:
1.18 kB
·
Xet hash:
f912ef49a02f8ff956f125ce583484e9a11dcde5e4bb8704fdb1d47ead67a9d6

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.