[issue30587] Mock with spec object does not ensure method call signatures

2019-11-07 Thread Ben Reilly
Change by Ben Reilly : -- nosy: +breilly_box ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue30587] Mock with spec object does not ensure method call signatures

2019-10-28 Thread Phil Connell
Change by Phil Connell : -- nosy: +pconnell ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue30587] Mock with spec object does not ensure method call signatures

2019-09-10 Thread Michael Foord
Michael Foord added the comment: This will affect spec and spec_set. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue30587] Mock with spec object does not ensure method call signatures

2019-09-10 Thread Michael Foord
Michael Foord added the comment: I'd like spec to have signature validation. I don't think the use case for "attribute validation only" (current spec behaviour) is very strong and I'd rather not add new keywords. The mock API is already too complex. I'll take the existing PR and modify it to

[issue30587] Mock with spec object does not ensure method call signatures

2019-04-01 Thread Michael Foord
Michael Foord added the comment: Spec objects are currently dumb. It would be a new feature to add signature validation to them. I think it would be a useful feature though as currently autospec sort of obsoletes spec objects whilst being more heavyweight and harder to use. I think it woul

[issue30587] Mock with spec object does not ensure method call signatures

2019-03-31 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: -4411 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30587] Mock with spec object does not ensure method call signatures

2019-03-31 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I am slightly concerned if spec should gain more responsibility than just validating attribute access which is mentioned in the docs. With the linked PR spec below would also validate the signature which is not done in Python 3.7 so this might break

[issue30587] Mock with spec object does not ensure method call signatures

2019-03-31 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue30587] Mock with spec object does not ensure method call signatures

2019-03-31 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +cjw296, mariocj89, michael.foord versions: +Python 3.8 -Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker __

[issue30587] Mock with spec object does not ensure method call signatures

2017-11-20 Thread Claudiu Belu
Change by Claudiu Belu : -- keywords: +patch pull_requests: +4411 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue30587] Mock with spec object does not ensure method call signatures

2017-06-07 Thread Claudiu Belu
New submission from Claudiu Belu: Mock can accept a spec object / class as argument, making sure that accessing attributes that do not exist in the spec will cause an AttributeError to be raised, but there is no guarantee that the spec's methods signatures are respected in any way. This create