fp/apps/bright/test/support/fixtures/patrons_fixtures.ex
CJ_Clippy aa75c224fc
Some checks failed
ci / build (push) Failing after 23m29s
ci / Tests & Checks (push) Failing after 3m32s
move services/bright to apps/bright
2025-02-10 08:16:50 -08:00

23 lines
438 B
Elixir

defmodule Bright.PatronsFixtures do
@moduledoc """
This module defines test helpers for creating
entities via the `Bright.Patrons` context.
"""
@doc """
Generate a patron.
"""
def patron_fixture(attrs \\ %{}) do
{:ok, patron} =
attrs
|> Enum.into(%{
lifetime_support_cents: 42,
name: "some name",
public: true
})
|> Bright.Patrons.create_patron()
patron
end
end