in remote_settings/client.py [0:0]
def attachment_content(self, index):
"""Retrieves the file content of the attachment that will be attached to a newly created record.
Args:
index (int): The index of the record.
Returns:
bytes: The content of the attachment
"""
with open(self.attachment_path(index), "rb") as f:
attachment_content = f.read()
return attachment_content