mirror of
https://github.com/kevin-DL/phoenix_api_template.git
synced 2026-01-11 10:44:32 +00:00
21 lines
440 B
Elixir
21 lines
440 B
Elixir
defmodule PhoenixApiTemplate.ProfilesFixtures do
|
|
@moduledoc """
|
|
This module defines test helpers for creating
|
|
entities via the `PhoenixApiTemplate.Profiles` context.
|
|
"""
|
|
|
|
@doc """
|
|
Generate a profile.
|
|
"""
|
|
def profile_fixture(attrs \\ %{}) do
|
|
{:ok, profile} =
|
|
attrs
|
|
|> Enum.into(%{
|
|
display_name: "some display_name"
|
|
})
|
|
|> PhoenixApiTemplate.Profiles.create_profile()
|
|
|
|
profile
|
|
end
|
|
end
|