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

TST/REF: collect tests by method #37403

Merged
merged 5 commits into from
Oct 26, 2020
Merged

Conversation

jbrockmendel
Copy link
Member

No description provided.

@jreback jreback added the Testing pandas testing functions or related to the test suite label Oct 26, 2020
@jreback jreback added this to the 1.2 milestone Oct 26, 2020
@jreback jreback added the Categorical Categorical Data Type label Oct 26, 2020
@jreback jreback merged commit 52361e1 into pandas-dev:master Oct 26, 2020
expected = DataFrame(
{"A": [0, np.nan], "B": Series(list("ae")).astype(CDT(cats, ordered=True))}
).set_index("B")
tm.assert_frame_equal(result, expected, check_index_type=True)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you split this test up

return request.param


@pytest.fixture(params=[True, False])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could be a top-level fixture


@pytest.mark.parametrize("unit", ["h", "m", "s", "ms", "D", "M", "Y"])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ideally make this a top-level fixture (followon fine)

@jreback
Copy link
Contributor

jreback commented Oct 26, 2020

some comments for followon

JulianWgs pushed a commit to JulianWgs/pandas that referenced this pull request Oct 26, 2020
@jbrockmendel jbrockmendel deleted the tst-indexing-6 branch October 26, 2020 15:08
kesmit13 pushed a commit to kesmit13/pandas that referenced this pull request Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Categorical Categorical Data Type Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants