We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://github.com/pandas-dev/pandas/blob/master/pandas/tests/indexes/test_base.py#L36 we define a lot of self.indices that are used in testing (mostly in .common.py), where we iteratore over .indices.values()
self.indices
.common.py
.indices.values()
if this were made into a parameterize fixture, then the tests can be changed to be a lot simpler. something like.
@pytest.fixture(params=[tm.makeUnicodeIndex(...), tm.make......]) def index(request): return request.param # in common.py def test_wrong_number_names(self, index): def testit(ind): ind.names = ["apple", "banana", "carrot"] tm.assert_raises_regex(ValueError, "^Length", testit, index)
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
https://github.com/pandas-dev/pandas/blob/master/pandas/tests/indexes/test_base.py#L36 we define a lot of
self.indices
that are used in testing (mostly in.common.py
), where we iteratore over.indices.values()
if this were made into a parameterize fixture, then the tests can be changed to be a lot simpler. something like.
The text was updated successfully, but these errors were encountered: