B DedupeTest: Add explicit test for the sharding structure

This commit is contained in:
Lain Soykaf 2024-11-12 12:43:16 +04:00
parent d2de251c4d
commit ebea518c8c

View file

@ -10,6 +10,10 @@ defmodule Pleroma.Upload.Filter.DedupeTest do
@shasum "e30397b58d226d6583ab5b8b3c5defb0c682bda5c31ef07a9f57c1c4986e3781"
test "generates a shard path for a shasum" do
assert "e3/03/97/" <> _path = Dedupe.shard_path(@shasum)
end
test "adds shasum" do
File.cp!(
"test/fixtures/image.jpg",