logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 3121ed1325cceb8ec3f8d153d3c6fa18b2951714
parent f1abe39f6f5220eae6aad84a27a917b1d9bd4439
Author: Mark Felder <feld@feld.me>
Date:   Tue,  8 Jun 2021 14:49:57 -0500

Blurhash varies slightly by computer generating it, so just validate it wasn't nil

Diffstat:

Mtest/pleroma/upload/filter/analyze_metadata_test.exs7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/test/pleroma/upload/filter/analyze_metadata_test.exs b/test/pleroma/upload/filter/analyze_metadata_test.exs @@ -14,9 +14,10 @@ defmodule Pleroma.Upload.Filter.AnalyzeMetadataTest do tempfile: Path.absname("test/fixtures/image.jpg") } - assert {:ok, :filtered, - %{width: 1024, height: 768, blurhash: "V5DI,j_NIS%eI.RDI[RS%1WDr=IVD-RoV{?Ge-tiSKkR"}} = - AnalyzeMetadata.filter(upload) + {:ok, :filtered, meta} = AnalyzeMetadata.filter(upload) + + assert %{width: 1024, height: 768} = meta + assert meta.blurhash end test "adds the dimensions for videos" do