Skipping decorators in unit tests

Gilles Lenfant gilles.lenfant at gmail.com
Thu Oct 10 10:00:55 EDT 2013


Hi,

(explaining the title) : my app has functions and methods (and maybe classes in the future) that are decorated by decorators provided by the standard library or 3rd party packages.

But I need to test "undecorated" functions and methods in my unit tests, preferably without adding "special stuffs" in my target tested modules.

Can someone point out good practices or dedicated tools that "remove temporarily" the decorations.

I pasted a small example of what I heed at http://pastebin.com/20CmHQ7Y

Many thanks in advance
-- 
Gilles Lenfant



More information about the Python-list mailing list