Is there a way to ignore whole function in python/pytest? For example:
def function1():
print("function1")
def function2():
print("function2")
def function3():
function1()
function2()
@patch("function2")
def test_function3():
function3()
>>> function2