uber / doubles

Test doubles for Python.
MIT License
164 stars 17 forks source link

Add __name__ and __doc__ proxying to ProxyMethod #69

Closed dnathe4th closed 9 years ago

dnathe4th commented 9 years ago
HelloGrayson commented 9 years ago

@dnathe4th what does this mean for users? Can you add an example, potentially to the docs?

coveralls commented 9 years ago

Coverage Status

Coverage increased (+0.01%) to 98.2% when pulling d05ce36a47dba9003f3b696285c1fb3f154368d5 on dn-proxy-name into 717c8427284596ed7a5b96e4a6be71562cc80010 on master.

toddsifleet commented 9 years ago

This looks good to me.

dnathe4th commented 9 years ago

@breerly I'll mention it in the changelog but not sure where it belongs in the docs. It's not really directly useful to users it just means lazy wrappers (calling functools.wraps(func) where func is a ProxyMethod on an already doubled object) will no longer throw AttributeExceptions for __name__ not being a property of ProxyMethod.

coveralls commented 9 years ago

Coverage Status

Coverage increased (+0.01%) to 98.2% when pulling d068b2ac6532bfe64dfdf7895690342771cceb2e on dn-proxy-name into 717c8427284596ed7a5b96e4a6be71562cc80010 on master.

coveralls commented 9 years ago

Coverage Status

Coverage increased (+0.01%) to 98.2% when pulling d068b2ac6532bfe64dfdf7895690342771cceb2e on dn-proxy-name into 717c8427284596ed7a5b96e4a6be71562cc80010 on master.