-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
TST: added test for to_json when called on numbers exceeding the int64 limit #47589
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
Conversation
pandas/tests/io/json/test_pandas.py
Outdated
], | ||
) | ||
@pytest.mark.parametrize("orient", ["split"]) | ||
def test_json_uint64(self, data, expected, orient): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is only one test right? You don’t have to paeametrize over arguments that take only one value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh ok. Should I refactor and resubmit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can just update this brancj
pandas/tests/io/json/test_pandas.py
Outdated
'{"columns":["col1"],"index":[0,1],' | ||
'"data":[[13342205958987758245],[12388075603347835679]]}' | ||
) | ||
orient = "split" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't have to define orient or data as variables, just put them into the functions directly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the feedback! This is my first contribution to open source, so bear with me :)
Thanks @johnmantios |
…4 limit (pandas-dev#47589) * TST: added test for to_json when called on numbers that exceed the int64 limit * TST: removed redundant parametrize wrapper * TST: removed redundant variable declarations
Added test for to_json() when called on numbers exceeding the int64 limit.
Tests and linter pass locally.