I'm going to take a quick look at this, though I should add that I get the same problem as Daniel Bruce when running the tests with both Mock 0.5.0 and Mock 0.6.0:
Traceback (most recent call last):
File "/Users/dan/.eggs/djangorecipe-0.19.2-py2.6.egg/djangorecipe/tests.py", line 24, in <module>
class TestRecipe(unittest.TestCase):
File "/Users/dan/.eggs/djangorecipe-0.19.2-py2.6.egg/djangorecipe/tests.py", line 110, in TestRecipe
@mock.patch('subprocess', 'Popen')
File "build/bdist.macosx-10.6-universal/egg/mock.py", line 260, in patch
raise TypeError("Need a valid target to patch. You supplied: %r" % (target,))
TypeError: Need a valid target to patch. You supplied: 'subprocess'
I'm going to take a quick look at this, though I should add that I get the same problem as Daniel Bruce when running the tests with both Mock 0.5.0 and Mock 0.6.0:
(djangorecipe) leafhopper: djangorecipe dan$ bin/test
Test-module import failures:
Module: djangorecipe.tests
Traceback (most recent call last): dan/.eggs/ djangorecipe- 0.19.2- py2.6.egg/ djangorecipe/ tests.py" , line 24, in <module> unittest. TestCase) : dan/.eggs/ djangorecipe- 0.19.2- py2.6.egg/ djangorecipe/ tests.py" , line 110, in TestRecipe patch(' subprocess' , 'Popen') bdist.macosx- 10.6-universal/ egg/mock. py", line 260, in patch
File "/Users/
class TestRecipe(
File "/Users/
@mock.
File "build/
raise TypeError("Need a valid target to patch. You supplied: %r" % (target,))
TypeError: Need a valid target to patch. You supplied: 'subprocess'