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
The problem: clone_dependant() seems to copy the dependant, but it's not. When you try to append something to cloned dependant's fields you edit the original fields too.
cloned_dependant = clone_dependant(original_dependant)
original_dependant.body_params.append("some value that should be in copied")
assert cloned_dependant.body_params == ["some path"] # fails
The text was updated successfully, but these errors were encountered:
denisSurkov
changed the title
clone_dependant() doesnt clone
clone_dependant() fakes cloning
Mar 14, 2020
The problem:
clone_dependant()
seems to copy the dependant, but it's not. When you try to append something to cloned dependant's fields you edit the original fields too.The text was updated successfully, but these errors were encountered: