Files
offline-db/patch_test_profile3.py
1679d766c9 Fix badge system tests, validate_image_mimetype, and user bio migrations (#345)
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: Senpai-YoloBot <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-19 21:07:24 +00:00

13 lines
334 B
Python

import re
with open('users/tests/test_profile_view.py', 'r') as f:
content = f.read()
new_content = content.replace(
"response = client.patch(url, data, format='json')",
"response = client.patch(url, data, format='json', secure=True)"
)
with open('users/tests/test_profile_view.py', 'w') as f:
f.write(new_content)