You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, snapshots using a pandas dataframe seem to be broken to me as it is not actually checking the entire dataframe just sections of this.
One option I've considered is converting to dictionaries however sometimes tests still fail because dictionaries have no order in their columns.
Currently, the best solution I can find is using a custom extension of syrupy which allows for snapshots with pandas dataframes. I am currently working on that in the https://github.com/Roestlab/massdash/tree/test/add_tests branch.
This would require additional dependencies of pytest and syrupy however I think it is worth it. @singjc@irahorecka please let me know your thoughts
The text was updated successfully, but these errors were encountered:
jcharkow
changed the title
Update Tests
Update Tests for better pandas df snapshots
Feb 20, 2024
Issue:
Currently, snapshots using a pandas dataframe seem to be broken to me as it is not actually checking the entire dataframe just sections of this.
One option I've considered is converting to dictionaries however sometimes tests still fail because dictionaries have no order in their columns.
Currently, the best solution I can find is using a custom extension of syrupy which allows for snapshots with pandas dataframes. I am currently working on that in the https://github.com/Roestlab/massdash/tree/test/add_tests branch.
This would require additional dependencies of pytest and syrupy however I think it is worth it. @singjc @irahorecka please let me know your thoughts
The text was updated successfully, but these errors were encountered: