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
(I'm trying to check that my code increments folder names on collisions, like name (1), name (2), etc.)
Unfortunately, the assertion does NOT pass, because CreateFolderParent doesn't implement __eq__:
In [9]: from box_sdk_gen import CreateFolderParent
In [10]: a = CreateFolderParent('12')
In [11]: b = CreateFolderParent('12')
In [12]: a == b
Out[12]: False
Thanks for creating this issue. I just spoke with the team and we have decided to add such features to our models. Unfortunately, I can't give you a precise timeframe for when this will happen
Is your feature request related to a problem? Please describe.
I'm trying to use unittest to check call args:
(I'm trying to check that my code increments folder names on collisions, like
name (1)
,name (2)
, etc.)Unfortunately, the assertion does NOT pass, because
CreateFolderParent
doesn't implement__eq__
:Describe the solution you'd like
Adding basic equality check makes my tests pass:
I guess it would be nice to implement this for all these "arg" classes in the library, as there are lots of them.
Describe alternatives you've considered
I can fix my current issues with deep assert equal of the
create_folder_parent.id
values.The text was updated successfully, but these errors were encountered: