mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-20 08:01:35 +00:00
fix: Python buffered reader (#3136)
* fix: Python buffered reader * use bytes generator only for buferred reader
This commit is contained in:
committed by
GitHub
parent
fc606c078b
commit
86aa6d0f0d
@@ -93,6 +93,21 @@ SET s3_secret_access_key='80yMndIMcyXwEujxVNINQbf0tBlIzRaLPyM2m1n4';
|
||||
file_key = wmill.write_s3_file(S3Object(s3="region.csv"), file_content)
|
||||
print(file_key)
|
||||
|
||||
@unittest.skip("skipping")
|
||||
def test_upload_s3_raw_bytes(self):
|
||||
file_key = wmill.write_s3_file(
|
||||
S3Object(s3="hello-world.txt"), b"Hello Windmill!"
|
||||
)
|
||||
print(file_key)
|
||||
|
||||
@unittest.skip("skipping")
|
||||
def test_download_upload_s3_file(self):
|
||||
with wmill.load_s3_file_reader(S3Object(s3="customer.csv")) as file_content:
|
||||
file_key = wmill.write_s3_file(
|
||||
S3Object(s3="customer_test.csv"), file_content
|
||||
)
|
||||
print(file_key)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user