Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixturize tests/frame/test_asof.py #25628

Merged
merged 2 commits into from
Mar 10, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Review (jreback)
  • Loading branch information
h-vetinari committed Mar 10, 2019
commit 072a2f60b62e9ef41042f6b1393f52cd794d9977
12 changes: 0 additions & 12 deletions pandas/tests/frame/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,6 @@ def datetime_frame():
return DataFrame(tm.getTimeSeriesData())


@pytest.fixture
def date_range_frame():
"""
Fixture for DataFrame of ints with date_range index

Columns are ['A', 'B'].
"""
N = 50
rng = date_range('1/1/1990', periods=N, freq='53s')
return DataFrame({'A': np.arange(N), 'B': np.arange(N)}, index=rng)


@pytest.fixture
def float_string_frame():
"""
Expand Down
12 changes: 12 additions & 0 deletions pandas/tests/frame/test_asof.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@
import pandas.util.testing as tm


@pytest.fixture
def date_range_frame():
"""
Fixture for DataFrame of ints with date_range index

Columns are ['A', 'B'].
"""
N = 50
rng = date_range('1/1/1990', periods=N, freq='53s')
return DataFrame({'A': np.arange(N), 'B': np.arange(N)}, index=rng)


class TestFrameAsof():

def test_basic(self, date_range_frame):
Expand Down