Skip to content

Commit

Permalink
TST: test that we work in downstream packages
Browse files Browse the repository at this point in the history
  • Loading branch information
jreback committed May 5, 2017
1 parent a31c96d commit d6fe725
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ci/requirements-2.7.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

source activate pandas

echo "install 27"
echo "install 27 BUILD_TEST"

conda install -n pandas -c conda-forge feather-format
7 changes: 7 additions & 0 deletions ci/requirements-2.7_BUILD_TEST.pip
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
xarray
geopandas
dask
seaborn
pandas_gbq
pandas_datareader
statsmodels
7 changes: 7 additions & 0 deletions ci/requirements-2.7_BUILD_TEST.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

source activate pandas

echo "install 27"

conda install -n pandas -c conda-forge pyarrow
58 changes: 58 additions & 0 deletions pandas/tests/test_downstream.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
"""
Testing that we work in the downstream packages
"""
import pytest
from pandas import DataFrame


@pytest.fixture
def df():
return DataFrame({'A': [1, 2, 3]})


def test_dask(df):

dask = pytest.importorskip('dask') # noqa

import dask.dataframe as dd

ddf = dd.from_pandas(df)
assert ddf.A is not None
assert ddf.compute()


def test_xarray(df):

xarray = pytest.importorskip('xarray') # noqa

assert df.to_xarray() is not None


def test_statsmodels(df):

statsmodels = pytest.importorskip('statsmodels') # noqa


def test_seaborn(df):

seaborn = pytest.importorskip('seaborn') # noqa


def test_pandas_gbq(df):

pandas_gbq = pytest.importorskip('pandas-gbq') # noqa


def test_pandas_datareader(df):

pandas_datareader = pytest.importorskip('pandas-datareader') # noqa


def test_geopandas(df):

geopandas = pytest.importorskip('geopandas') # noqa


def test_pyarrow(df):

pyarrow = pytest.importorskip('pyarrow') # noqa

0 comments on commit d6fe725

Please sign in to comment.