Refactor all tests that acessed the embeded object

This commit is contained in:
rinpatch 2019-04-17 15:46:59 +03:00
commit ff8d76c670
7 changed files with 14 additions and 21 deletions

View file

@ -61,7 +61,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
|> Map.put("content", nil)
Object.change(note_object, %{data: data})
|> Repo.update()
|> Object.update_and_set_cache()
User.get_cached_by_ap_id(note.data["actor"])