Skip to content

TST: Add test_ to four tests in test_readlines.py and fix two of them #50445

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 3 commits into from
Dec 27, 2022
Merged

Conversation

phershbe
Copy link
Contributor

Four tests in https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/json/test_readlines.py weren't running because they didn't have test_ in front of their names, fixed those.

Two of those tests were not passing because the JSON data was turning booleans into 1s and 0s which was conflicting with the booleans in the compared data, so added int before all of the booleans in the compared data. Had detailed comments explaining this but shortened them in order to pass Flake8.

Copy link
Member

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

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

This is off to a good start!

Just got a minor comment, then good to go

@MarcoGorelli MarcoGorelli added this to the 2.0 milestone Dec 27, 2022
@MarcoGorelli MarcoGorelli added the Testing pandas testing functions or related to the test suite label Dec 27, 2022
Copy link
Member

@mroeschke mroeschke left a comment

Choose a reason for hiding this comment

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

LGTM merge when ready @MarcoGorelli

Copy link
Member

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

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

Thanks @phershbe !

@MarcoGorelli MarcoGorelli merged commit 21d6fcb into pandas-dev:main Dec 27, 2022
@MarcoGorelli
Copy link
Member

tip for next time - please make a new branch, don't make a pull request from main

@phershbe
Copy link
Contributor Author

tip for next time - please make a new branch, don't make a pull request from main

Thank you, your guidance is awesome, I appreciate it a lot

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 some tests in pandas/tests/io/json/test_readlines.py aren't being tested
3 participants