Skip to content

og_image: Use mockito to test avatar downloading code #11519

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 5, 2025

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Jul 4, 2025

Previously we were only testing with hardcoded test avatars. This PR adjusts our test code to use the mockito HTTP server to serve the avatars and testing the avatar downloading code against that. I've also adjusted the overflow test to use JPEG and WebP avatars too to avoid regressions in that area.

@Turbo87 Turbo87 added C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear A-backend ⚙️ labels Jul 4, 2025
@Turbo87 Turbo87 changed the title og_image: Use mockito to test avatar downloading code too og_image: Use mockito to test avatar downloading code Jul 4, 2025
@Turbo87 Turbo87 enabled auto-merge July 5, 2025 05:55
@Turbo87 Turbo87 merged commit 3858d89 into rust-lang:main Jul 5, 2025
10 checks passed
@Turbo87 Turbo87 deleted the og-image-tests branch July 5, 2025 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backend ⚙️ C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant