logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://anongit.hacktivis.me/git/pleroma.git/
commit: ebea518c8c9dea17ff18c8fa8192a7957adcfadb
parent d2de251c4d018c7d517d399d7d5e0e20d853972f
Author: Lain Soykaf <lain@lain.com>
Date:   Tue, 12 Nov 2024 12:43:16 +0400

B DedupeTest: Add explicit test for the sharding structure

Diffstat:

Mtest/pleroma/upload/filter/dedupe_test.exs4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/test/pleroma/upload/filter/dedupe_test.exs b/test/pleroma/upload/filter/dedupe_test.exs @@ -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",