(success, **args)
| 243 | return id.strip(), reason.strip(), choose |
| 244 | |
| 245 | def record_case(success, **args): |
| 246 | if success: |
| 247 | f = open("logs/log_success.jsonl", "a") |
| 248 | else: |
| 249 | f = open("logs/log_fail.jsonl", "a") |
| 250 | log = args |
| 251 | f.write(json.dumps(log) + "\n") |
| 252 | f.close() |
| 253 | |
| 254 | def image_to_bytes(img_url): |
| 255 | img_byte = io.BytesIO() |
no outgoing calls
no test coverage detected