From: Haelwenn (lanodan) Monnier Date: Mon, 31 May 2021 08:06:06 +0000 (+0200) Subject: factory: Fix article_factory X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=5c3a0dd26e8ba818388ca6965e71600fd2ec07a1;p=akkoma factory: Fix article_factory --- diff --git a/test/support/factory.ex b/test/support/factory.ex index 5c4e65c81..c267dba4e 100644 --- a/test/support/factory.ex +++ b/test/support/factory.ex @@ -191,8 +191,8 @@ defmodule Pleroma.Factory do end def article_factory do - note_factory() - |> Map.put("type", "Article") + %Pleroma.Object{data: data} = note_factory() + %Pleroma.Object{data: Map.merge(data, %{"type" => "Article"})} end def tombstone_factory do