Make outgoing salmons work.

This commit is contained in:
Roger Braun 2017-05-01 13:14:58 +02:00
commit 6843755834
8 changed files with 117 additions and 7 deletions

View file

@ -95,6 +95,7 @@ defmodule Pleroma.UserTest do
assert user == fetched_user
end
# TODO: Make the test local.
test "fetches an external user via ostatus if no user exists" do
fetched_user = User.get_or_fetch_by_nickname("shp@social.heldscal.la")
assert fetched_user.nickname == "shp@social.heldscal.la"
@ -104,6 +105,11 @@ defmodule Pleroma.UserTest do
fetched_user = User.get_or_fetch_by_nickname("nonexistant@social.heldscal.la")
assert fetched_user == nil
end
test "returns nil for nonexistant local user" do
fetched_user = User.get_or_fetch_by_nickname("nonexistant")
assert fetched_user == nil
end
end
end