Hi,
I have task and workflow
it structured like
def file_generator(output1, value1, date):
------
_________
_____________
return destination_blob_path
@task
def file_converter(output1, value1, date) --> str
output_file = file_genrator(outpu1, value1, date)
return output_file
in another file have workflow calling above task
@workflow
def workflow(
some inputs):
task1 =
task2 = file_converter(output1, vaue1, date)
task3=
task4=
mostly my focus is to test the task or write the test case for the task. Workflow also have to do
how can I test it
I wrote a test case for task using task_mock
I am asserting the result and the value of the output
result= file_converter(output1, vaue1, date)
this is comparing and giving the result
but, when I am changed any thing in actual task(like removing required lines of code (bug)) still it is passing
actually it is only comparing the variable or return value
not actual function
if change the code which is the code is wrong it should fail
how can I correct or write the test case. Can you please help here