mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-13 01:24:21 +01:00
18 lines
417 B
Elixir
18 lines
417 B
Elixir
defmodule Philomena.ModerationLogsFixtures do
|
|
@moduledoc """
|
|
This module defines test helpers for creating
|
|
entities via the `Philomena.ModerationLogs` context.
|
|
"""
|
|
|
|
@doc """
|
|
Generate a moderation_log.
|
|
"""
|
|
def moderation_log_fixture(attrs \\ %{}) do
|
|
{:ok, moderation_log} =
|
|
attrs
|
|
|> Enum.into(%{})
|
|
|> Philomena.ModerationLogs.create_moderation_log()
|
|
|
|
moderation_log
|
|
end
|
|
end
|