Merge pull request 'Small improvements to the Gentoo installation isntructions' ...
[akkoma] / test / support / factory.ex
index 3e426c565594ac8299d8acfa447e7058202f1e1a..808f8f8879e9148bca2dd0e63e6dd5f0c8fed596 100644 (file)
@@ -469,6 +469,7 @@ defmodule Pleroma.Factory do
       data: data,
       actor: follower.ap_id
     }
+    |> Map.merge(attrs)
   end
 
   def report_activity_factory(attrs \\ %{}) do
@@ -715,4 +716,11 @@ defmodule Pleroma.Factory do
       user: user
     }
   end
+
+  def hashtag_factory(params \\ %{}) do
+    %Pleroma.Hashtag{
+      name: "test #{sequence(:hashtag_name, & &1)}"
+    }
+    |> Map.merge(params)
+  end
 end