projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add include for the "Further reading" section
[akkoma]
/
test
/
upload_test.exs
diff --git
a/test/upload_test.exs
b/test/upload_test.exs
index 0ca5ebcedf952cbb4d14dd38b6c17ae5bf7891da..2abf0edec6b6ee61d7342923eb5749b7bfd57f1a 100644
(file)
--- a/
test/upload_test.exs
+++ b/
test/upload_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.UploadTest do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.UploadTest do
@@
-54,6
+54,7
@@
defmodule Pleroma.UploadTest do
%{
"name" => "image.jpg",
"type" => "Document",
%{
"name" => "image.jpg",
"type" => "Document",
+ "mediaType" => "image/jpeg",
"url" => [
%{
"href" => "http://localhost:4001/media/post-process-file.jpg",
"url" => [
%{
"href" => "http://localhost:4001/media/post-process-file.jpg",
@@
-250,9
+251,7
@@
defmodule Pleroma.UploadTest do
end
describe "Setting a custom base_url for uploaded media" do
end
describe "Setting a custom base_url for uploaded media" do
- clear_config([Pleroma.Upload, :base_url]) do
- Pleroma.Config.put([Pleroma.Upload, :base_url], "https://cache.pleroma.social")
- end
+ setup do: clear_config([Pleroma.Upload, :base_url], "https://cache.pleroma.social")
test "returns a media url with configured base_url" do
base_url = Pleroma.Config.get([Pleroma.Upload, :base_url])
test "returns a media url with configured base_url" do
base_url = Pleroma.Config.get([Pleroma.Upload, :base_url])