projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1abe39
)
Blurhash varies slightly by computer generating it, so just validate it wasn't nil
author
Mark Felder
<feld@feld.me>
Tue, 8 Jun 2021 19:49:57 +0000
(14:49 -0500)
committer
Mark Felder
<feld@feld.me>
Tue, 8 Jun 2021 19:53:03 +0000
(14:53 -0500)
test/pleroma/upload/filter/analyze_metadata_test.exs
patch
|
blob
|
history
diff --git
a/test/pleroma/upload/filter/analyze_metadata_test.exs
b/test/pleroma/upload/filter/analyze_metadata_test.exs
index 97f5fe9b23bfe978688c9ff742d59040bf1a53fe..4b636a684fadd3815c47bf94338c3b5988851024 100644
(file)
--- 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