Skip to content

TST/REF: collect/parametrize tests from tests.generic #37730

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

Merged
merged 10 commits into from
Nov 13, 2020

Conversation

jbrockmendel
Copy link
Member

For some of these its just breaking up big tests and giving them meaningful names.

Copy link
Member

@WillAyd WillAyd left a comment

Choose a reason for hiding this comment

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

Looks reasonable

@@ -41,49 +40,76 @@ def test_convert_dti_to_series(self):
),
name="B",
)
assert expected.dtype == idx.dtype
Copy link
Member

Choose a reason for hiding this comment

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

I'm probably a little rusty on review :-) but is using assert in a fixture a common idiom?

Copy link
Member Author

Choose a reason for hiding this comment

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

its probably not super-encouraged but i dont think its an anti-pattern

@WillAyd WillAyd added Refactor Internal refactoring of code Testing pandas testing functions or related to the test suite labels Nov 10, 2020
@jreback jreback added this to the 1.2 milestone Nov 11, 2020
@jreback jreback merged commit 3cb6ee8 into pandas-dev:master Nov 13, 2020
@jbrockmendel jbrockmendel deleted the tst-generic-3 branch November 13, 2020 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactor Internal refactoring of code Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants