Josh Paulin
10/18/2022, 6:21 PMdisable_run_loggerAnna Geller
Zanie
Zanie
cache_key_fnJosh Paulin
10/18/2022, 7:49 PMcache_results_in_memory option.
The following test will pass as is, but if you uncomment line 19 and explicitly set the results_storage it will fail that the cache block isn’t found.
Change the fixture from function to session and it fails because the second run has a state of CachedZanie
Josh Paulin
10/18/2022, 11:05 PMpytest outputJosh Paulin
10/19/2022, 3:30 PMZanie
Zanie
Zanie
LocalFileSystem objectZanie
Zanie
Zanie
@pytest.mark.parametrize("execution_number", range(2))
def test_flow(execution_number):
simple_task.result_storage._block_document_id = None
result = simple_flow()
assert result[0].name == "Completed"Zanie
None fixes the issueJosh Paulin
10/19/2022, 3:47 PMJosh Paulin
10/19/2022, 3:48 PM