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

Tests for ABC Types #10859

Closed
wants to merge 3 commits into from
Closed

Conversation

DanNi0130
Copy link
Contributor

closes #10828

I used self.assertIsInstance(obj, type) and inlined as many of the expressions as I could while staying PEP8 compliant. I added in the two tests that I took out, that was an accident. Let me know if this looks okay!

@jreback jreback added the Testing pandas testing functions or related to the test suite label Aug 20, 2015
@jreback
Copy link
Contributor

jreback commented Aug 20, 2015

@DanNi0130 normally you don't need to open a new pull request, just update the existing one.

see contribution docs here

sparse_array = pd.SparseArray(np.random.randn(10))

def test_abc_indices(self):
self.assertIsInstance(pd.Index(['a', 'b', 'c']), com.ABCIndex)
Copy link
Contributor

Choose a reason for hiding this comment

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

add the issue number as a comment here

Copy link
Contributor

Choose a reason for hiding this comment

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

just call this test_abc_types or something; indicies are very specific

@jreback jreback added this to the 0.17.0 milestone Aug 20, 2015
@jreback
Copy link
Contributor

jreback commented Aug 20, 2015

small comment, pls squash. ping when green.

@DanNi0130
Copy link
Contributor Author

You want me to add the issue number as a comment in the code? I just fixed the function name.

@jreback
Copy link
Contributor

jreback commented Aug 20, 2015

yes

@DanNi0130
Copy link
Contributor Author

Done!

@jreback
Copy link
Contributor

jreback commented Aug 20, 2015

as i said. pls squash to a single commit. ping when travis reports green.

Added tests for ABC Types, Issue pandas-dev#10828

change function name for test_abc_types

Issue pandas-dev#10859
@jreback
Copy link
Contributor

jreback commented Aug 20, 2015

merged via 18012f0

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TST: add tests for ABC Types
2 participants