In pytest, I need to unittest a function like a()
def a():
try:
some_error_line
except Exception,e:
logging.debug("----")
How to assert the function a() which does not raises exception ?
In pytest, I need to unittest a function like a()
def a():
try:
some_error_line
except Exception,e:
logging.debug("----")
How to assert the function a() which does not raises exception ?