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

TST: Added tests to check if file exists for read_json. #44921

Closed

Conversation

cheungje
Copy link

@cheungje cheungje commented Dec 16, 2021

Per the thread in #29104, there should be a differentiation between a json string passed as input and a filepath (from filepath_or_buffer variable passed into _get_data_from_filepath function). If it is not a valid string, then we cannot just raise a FileNotFound Exception error. Therefore, the variable must be checked to see if it is a valid JSON string, if it is a valid file path, and suggest a course of action or raise an appropriate error if it is a faulty string.

@phofl
Copy link
Member

phofl commented Dec 16, 2021

Please open only one pr per topic

@phofl phofl closed this Dec 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants