Skip to content

TST: parametrize some indexing tests #31767

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 8 commits into from
Feb 9, 2020

Conversation

jbrockmendel
Copy link
Member

2/many

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.

lgtm

@WillAyd WillAyd added the Testing pandas testing functions or related to the test suite label Feb 7, 2020
@jreback jreback added this to the 1.1 milestone Feb 9, 2020
@jreback jreback added the Indexing Related to indexing on series/frames, not to indexes themselves label Feb 9, 2020
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

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

ok for now, or can do more here, lmk.

# on appropriate Index types & accessors

for index in [
@pytest.mark.parametrize(
Copy link
Contributor

Choose a reason for hiding this comment

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

eventually consolidate move to top-level (as i suspect we have many of these fixtures, or will as you parametrize)

"unicode",
"mixed",
}:
# getting
Copy link
Contributor

Choose a reason for hiding this comment

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

obviously this test can use ore parameterization, ok for later

@@ -9,61 +9,59 @@


class TestScalar(Base):
def test_at_and_iat_get(self):
@pytest.mark.parametrize("kind", ["series", "frame"])
Copy link
Contributor

Choose a reason for hiding this comment

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

make sure we use the same nomenclature, usually we call this klass and use the object itself

@jbrockmendel
Copy link
Member Author

ok for now, or can do more here, lmk.

Agreed with all your comments. These tests are a mess, (xref #31813, #31816) so id like to get these cleanups in small pieces to avoid merge headaches

@jreback jreback merged commit 46a77f6 into pandas-dev:master Feb 9, 2020
@jreback
Copy link
Contributor

jreback commented Feb 9, 2020

thanks

@jbrockmendel jbrockmendel deleted the param-scalar-indexing branch February 9, 2020 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Indexing Related to indexing on series/frames, not to indexes themselves 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