projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
debug logs on pleroma restart
[akkoma]
/
test
/
uploaders
/
s3_test.exs
diff --git
a/test/uploaders/s3_test.exs
b/test/uploaders/s3_test.exs
index 171316340db8ead0811158546a8be01981447215..fdc7eff410c6fe9696fa72d765edf1340ff7f1db 100644
(file)
--- a/
test/uploaders/s3_test.exs
+++ b/
test/uploaders/s3_test.exs
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-20
19
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-20
20
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Uploaders.S3Test do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Uploaders.S3Test do
@@
-79,4
+79,11
@@
defmodule Pleroma.Uploaders.S3Test do
end
end
end
end
end
end
+
+ describe "delete_file/1" do
+ test_with_mock "deletes file", ExAws, request: fn _req -> {:ok, %{status_code: 204}} end do
+ assert :ok = S3.delete_file("image.jpg")
+ assert_called(ExAws.request(:_))
+ end
+ end
end
end