Message365144
On thinking more about this the wraps argument provides a way to wrap the calls for the mock to a given object. So when an attribute not present in the wrapped object is being accessed then it should act like the attribute is not present. Falling back to the default value like previous case would help but that will pose the question over whether the value is from the wrapped object's attribute or from the default value for the magic method that the user could never know. This could be better clarified in the docs I suppose which I missed in the previous issue.
Thoughts on this fallback behavior? |
|
Date |
User |
Action |
Args |
2020-03-27 11:43:55 | xtreak | set | recipients:
+ xtreak, rbcollins, cjw296, r.david.murray, michael.foord, pconnell, Darragh Bailey, lisroach, anthonypjshaw, mariocj89, aviso, Amir |
2020-03-27 11:43:55 | xtreak | set | messageid: <1585309435.37.0.0933351696984.issue39966@roundup.psfhosted.org> |
2020-03-27 11:43:55 | xtreak | link | issue39966 messages |
2020-03-27 11:43:55 | xtreak | create | |
|