logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://anongit.hacktivis.me/git/pleroma.git/
commit: 4e6f0af4ce66b17687092746d397c04afc56e281
parent 425329bacd59cbf15c017aaa4ab271c768076120
Author: Mark Felder <feld@feld.me>
Date:   Wed, 30 Jul 2025 17:32:49 -0700

Better assertion logic

Diffstat:

Mtest/pleroma/http_test.exs8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/test/pleroma/http_test.exs b/test/pleroma/http_test.exs @@ -76,14 +76,14 @@ defmodule Pleroma.HTTPTest do url_with_space = "https://tsundere.love/emoji/Pack 1/koronebless.png?foo=bar baz" - result = HTTP.get(url_with_space) + {:ok, result} = HTTP.get(url_with_space) - assert result == {:ok, %Tesla.Env{status: 200, body: "emoji data"}} + assert result.status == 200 properly_encoded_url = "https://tsundere.love/emoji/Pack%201/koronebless.png?foo=bar+baz" - result = HTTP.get(properly_encoded_url) + {:ok, result} = HTTP.get(properly_encoded_url) - assert result == {:ok, %Tesla.Env{status: 200, body: "emoji data"}} + assert result.status == 200 end end