Skip to content

Commit

Permalink
TST: tests for maybe_promote (precursor to #23982) (#25637)
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari authored and jreback committed Jun 21, 2019
1 parent dda4c1a commit f2aea09
Show file tree
Hide file tree
Showing 2 changed files with 721 additions and 0 deletions.
44 changes: 44 additions & 0 deletions pandas/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,10 @@ def tz_aware_fixture(request):
return request.param


# Generate cartesian product of tz_aware_fixture:
tz_aware_fixture2 = tz_aware_fixture


# ----------------------------------------------------------------
# Dtypes
# ----------------------------------------------------------------
Expand Down Expand Up @@ -438,6 +442,46 @@ def string_dtype(request):
return request.param


@pytest.fixture(params=BYTES_DTYPES)
def bytes_dtype(request):
"""Parametrized fixture for bytes dtypes.
* bytes
* 'bytes'
"""
return request.param


@pytest.fixture(params=OBJECT_DTYPES)
def object_dtype(request):
"""Parametrized fixture for object dtypes.
* object
* 'object'
"""
return request.param


@pytest.fixture(params=DATETIME64_DTYPES)
def datetime64_dtype(request):
"""Parametrized fixture for datetime64 dtypes.
* 'datetime64[ns]'
* 'M8[ns]'
"""
return request.param


@pytest.fixture(params=TIMEDELTA64_DTYPES)
def timedelta64_dtype(request):
"""Parametrized fixture for timedelta64 dtypes.
* 'timedelta64[ns]'
* 'm8[ns]'
"""
return request.param


@pytest.fixture(params=FLOAT_DTYPES)
def float_dtype(request):
"""
Expand Down
Loading

0 comments on commit f2aea09

Please sign in to comment.