0

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.

coderelliot
  • 421
  • 5
  • 15

0 Answers0