I have a function that is like:
@dec_func def a(): do_something;
In my django tests this function is ran in execution. Now i want that whenever the tests run my function a should not get decorated dec_func but if the function runs in development or production environment, method should be decorated. How to do so.
a
dec_func
2.1m questions
2.1m answers
60 comments
57.0k users