From e8da59f4a56b39df4db97eb8944d9c7e9164ac58 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Sat, 20 Nov 2021 18:36:26 +0100 Subject: [PATCH] Cleanup clean_orphan_test.exs Signed-off-by: Thomas Citharel --- test/tasks/media/clean_orphan_test.exs | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/test/tasks/media/clean_orphan_test.exs b/test/tasks/media/clean_orphan_test.exs index e0b2f2bd3..073dc1ded 100644 --- a/test/tasks/media/clean_orphan_test.exs +++ b/test/tasks/media/clean_orphan_test.exs @@ -137,29 +137,4 @@ defmodule Mix.Tasks.Mobilizon.Media.CleanOrphanTest do size: 13_120 } end - - defp create_file do - File.cp!("test/fixtures/picture.png", "test/fixtures/picture_tmp.png") - - file = %Plug.Upload{ - content_type: "image/png", - path: Path.absname("test/fixtures/picture_tmp.png"), - filename: "image.png" - } - - {:ok, data} = Mobilizon.Web.Upload.store(file) - - %{ - content_type: "image/png", - name: "image.png", - url: url - } = data - - %Mobilizon.Medias.File{ - name: "My Media", - url: url, - content_type: "image/png", - size: 13_120 - } - end end