Amit Singh
02/19/2020, 7:37 PMwith raises(signals.SUCCESS) as excinfo:
result = some_lib.some_function()
print(result)
assert excinfo.type == signals.SUCCESS
assert excinfo.typename == 'SUCCESS'
Chris White
02/19/2020, 7:43 PMpytest.raises
? I’m not sure what the goal of this code is, but it appears to be testing that a random library function raises a particular Prefect signalAmit Singh
02/19/2020, 7:47 PMraise signals.SUCCESS("Mail successfully sent.")
Chris White
02/19/2020, 7:48 PMAmit Singh
02/19/2020, 7:48 PMChris White
02/19/2020, 7:48 PM