Skip to content

Commit 970cf3d

Browse files
committed
test: new method for tests http client
1 parent 5c38420 commit 970cf3d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/common/client.rs

+6
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,12 @@ impl Client {
177177
pub async fn ban_user(&self, username: Username) -> TextResponse {
178178
self.http_client.delete(&format!("/user/ban/{}", &username.value)).await
179179
}
180+
181+
// Context: proxy
182+
183+
pub async fn get_image_by_url(&self, url: &str) -> TextResponse {
184+
self.http_client.get(&format!("/proxy/image/{url}"), Query::empty()).await
185+
}
180186
}
181187

182188
/// Generic HTTP Client

0 commit comments

Comments
 (0)