projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request 'Small improvements to the Gentoo installation isntructions' ...
[akkoma]
/
test
/
support
/
factory.ex
diff --git
a/test/support/factory.ex
b/test/support/factory.ex
index 3e426c565594ac8299d8acfa447e7058202f1e1a..808f8f8879e9148bca2dd0e63e6dd5f0c8fed596 100644
(file)
--- a/
test/support/factory.ex
+++ b/
test/support/factory.ex
@@
-469,6
+469,7
@@
defmodule Pleroma.Factory do
data: data,
actor: follower.ap_id
}
data: data,
actor: follower.ap_id
}
+ |> Map.merge(attrs)
end
def report_activity_factory(attrs \\ %{}) do
end
def report_activity_factory(attrs \\ %{}) do
@@
-715,4
+716,11
@@
defmodule Pleroma.Factory do
user: user
}
end
user: user
}
end
+
+ def hashtag_factory(params \\ %{}) do
+ %Pleroma.Hashtag{
+ name: "test #{sequence(:hashtag_name, & &1)}"
+ }
+ |> Map.merge(params)
+ end
end
end