The Voidspace Techie Blog

Gravatar Some time ago I sent a patch that enables using @patch to mock non existing attributes[0]. It 'd be nice if you could review it when you have time!

And again, thanks for this excellent module

[0] http://code.google.com/p/mock/is...ues/detail? id=3


Gravatar There are a few issues and patches over on the google code page that I didn't realise were there! I'll look at all of these.

Being able to patch non-existent attributes seems like a reasonable call - and would help with TDD where you want to write a test for something that doesn't yet exist.

The only problem is that it means that you can write tests that pass when the actual code doesn't work!

Thanks

Michael


Name:

Email:

URL:

Comment:  ? 

 

Commenting by HaloScan