projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: add legal boilerplate
[akkoma]
/
test
/
web
/
web_finger
/
web_finger_test.exs
diff --git
a/test/web/web_finger/web_finger_test.exs
b/test/web/web_finger/web_finger_test.exs
index 28d429565ab3a154793965b542e9f967305ac7c5..6b20d8d569d5a8e33e5ef48f03c64961f92d03aa 100644
(file)
--- a/
test/web/web_finger/web_finger_test.exs
+++ b/
test/web/web_finger/web_finger_test.exs
@@
-1,7
+1,17
@@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
defmodule Pleroma.Web.WebFingerTest do
use Pleroma.DataCase
alias Pleroma.Web.WebFinger
import Pleroma.Factory
defmodule Pleroma.Web.WebFingerTest do
use Pleroma.DataCase
alias Pleroma.Web.WebFinger
import Pleroma.Factory
+ import Tesla.Mock
+
+ setup do
+ mock(fn env -> apply(HttpRequestMock, :request, [env]) end)
+ :ok
+ end
describe "host meta" do
test "returns a link to the xml lrdd" do
describe "host meta" do
test "returns a link to the xml lrdd" do