Message329721
mock can only verify if the function is called with the correct number of arguments as you have passed spec. It doesn't verify whether the function implementation is correct like calling Something.foobar() because it's not designed to verify the function implementation. It wouldn't raise an exception even when self.foo(1, 2) is called inside x.bar because runtime code is not executed and only the signature is checked with mock. I think this is an expected behavior and not a bug. |
|
Date |
User |
Action |
Args |
2018-11-12 07:05:32 | xtreak | set | recipients:
+ xtreak, jonathan.huot |
2018-11-12 07:05:32 | xtreak | set | messageid: <1542006332.19.0.788709270274.issue31541@psf.upfronthosting.co.za> |
2018-11-12 07:05:32 | xtreak | link | issue31541 messages |
2018-11-12 07:05:32 | xtreak | create | |
|