Storage¶
FileStorage
¶
Bases: Protocol
Protocol for representing required file uploader interfaces.
Source code in pytest_qaseio/storage.py
8 9 10 11 12 13 | |
save_file_obj(content, filename)
¶
Upload file to storage and return URL.
Source code in pytest_qaseio/storage.py
11 12 13 | |
QaseFileStorage
¶
Upload files to Qase S3 bucket as attachment.
Source code in pytest_qaseio/storage.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | |
__init__(qase_token, qase_project_code)
¶
Prepare ApiClient for qase io using credentials.
Source code in pytest_qaseio/storage.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 | |
save_file_obj(content, filename)
¶
Upload file to Qase.io S3 bucket via attachment API.
Source code in pytest_qaseio/storage.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | |