derwiki-adroll / mock

Automatically exported from code.google.com/p/mock
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

patch.isolate #77

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
A patch variant that mocks everything in a module *except* the specified name.

Original issue reported on code.google.com by fuzzyman on 14 Mar 2011 at 7:21

GoogleCodeExporter commented 9 years ago
I have an implementation of @mock.isolate().  It is an adaptation of 
DingusTestCase.  If you like I can create/upload a patch.

Original comment by sib...@gmail.com on 22 Mar 2011 at 3:52

GoogleCodeExporter commented 9 years ago
That would be cool. Please attach it to this issue. 

Original comment by fuzzyman on 22 Mar 2011 at 12:27

GoogleCodeExporter commented 9 years ago
It may need some work for general consumption, but it has been working for me.  
I'm rather busy at the moment but I am willing to make revisions later if 
needed.

Original comment by sib...@gmail.com on 29 Mar 2011 at 5:30

Attachments:

GoogleCodeExporter commented 9 years ago
Cool - thanks. Note that mock is compatible with Python 2.4, which I think 
precludes the use of ternary expressions like "[] if excludes is None else 
excludes".

Original comment by fuzzyman on 29 Mar 2011 at 5:39

GoogleCodeExporter commented 9 years ago
now working with py2.4-py3.2

Original comment by sib...@gmail.com on 31 Mar 2011 at 2:01

Attachments:

GoogleCodeExporter commented 9 years ago
updated for mock 0.8, class_types->ClassTypes

Original comment by sib...@gmail.com on 30 May 2011 at 4:31

Attachments:

GoogleCodeExporter commented 9 years ago
Cool thanks - I'll look at this for the 0.8 release. I don't think it will make 
it into the first alpha (assuming it is accepted at all :-) but there'll be a 
few alphas before feature freeze.

Original comment by fuzzyman on 30 May 2011 at 4:35

GoogleCodeExporter commented 9 years ago

Original comment by fuzzyman on 18 Jun 2011 at 12:04