Closed nleroy917 closed 2 years ago
you should compare all the variables in the object, not just dicts, that were generated by to_dict()
.
Try to convert object variables using this function: https://github.com/pepkit/pephub_db/blob/648dfcb6d0dc15d8b758cbffc04839ae6cc303fd/peppy_p.py#L12-L48 and then compare it.
fixed
It would be nice to have a reliable way to compare two project classes. At present, a simple equals operator doesn't work:
Maybe comparing the samples and ensuring they are identical in each project class?
This would be useful in tests for #378