projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'gun' of git.pleroma.social:alex.s/pleroma into gun
[akkoma]
/
test
/
web
/
rich_media
/
helpers_test.exs
diff --git
a/test/web/rich_media/helpers_test.exs
b/test/web/rich_media/helpers_test.exs
index 92198f3d9b91abeb8851ae76cc4bbd8b4b136a2d..8237802a76a0f4fe6c20b0402011c85cfc0bff1b 100644
(file)
--- a/
test/web/rich_media/helpers_test.exs
+++ b/
test/web/rich_media/helpers_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.Web.RichMedia.HelpersTest do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.RichMedia.HelpersTest do
@@
-15,12
+15,12
@@
defmodule Pleroma.Web.RichMedia.HelpersTest do
setup do
mock(fn env -> apply(HttpRequestMock, :request, [env]) end)
setup do
mock(fn env -> apply(HttpRequestMock, :request, [env]) end)
- rich_media = Config.get([:rich_media, :enabled])
- on_exit(fn -> Config.put([:rich_media, :enabled], rich_media) end)
:ok
end
:ok
end
+ clear_config([:rich_media, :enabled])
+
test "refuses to crawl incomplete URLs" do
user = insert(:user)
test "refuses to crawl incomplete URLs" do
user = insert(:user)