Pytest a function which contains a async function call
@app.task
def function_a(num):
//do somethings
pass
def function_b(a):
//do something
function_a.delay(a)
return a
@pytest.mark.django_db
def test_function_b()
a = function_b()
// assert condition depends on the operation on function_a
The conditions we are going to check in the test function is dependent the operations we did in the function_a
how can we test this using pytest?