HI, I am some queries about `testing` . ```@flow ...
# ask-community
d
HI, I am some queries about
testing
.
Copy code
@flow
def flow():
    #SOME STUFF HERE
    normal_function()
    #SOME OTHER STUFF HERE

def normal_function():
    return some_task()

@task
def some_task():
    return True
I want to assert that `normal_function`returns
True
.
The issue is
some_task
is a prefect task and needs to be flow context. I am testing
normal_function
so my codes cannot invoke
.fn
method of prefect task to run the function directly.
a
Have you tried using
.fn
for some_task()? change your normal_function:
Copy code
def normal_function():
    return some_task.fn()
d
Well if i do that
some_task
will no longer be a task Even outside the test.