Skip to content

Commit 26451f9

Browse files
committed
test: new method for tests http client
1 parent 720c046 commit 26451f9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/common/client.rs

Lines changed: 6 additions & 0 deletions
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)