async def __init_event__(context): global fs if fs is None: settings: FileStorageSettings = context.settings( key="fs_storage", datatype=FileStorageSettings) fs = FileStorage.with_settings(settings)
async def __init_event__(context): global fs if fs is None: fs = FileStorage(path=str(context.env['fs']['data_path']))
async def load_missing_file(): key = "FILENOTFOUND" fs = FileStorage(path=f"/tmp/{key}/") loaded = await fs.get(key, datatype=FsMockData) assert loaded is None