camp-api/test/support/fixtures/payment_links_fixtures.ex
Pierre de Lacroix c451662178
WIP
2026-01-22 16:29:25 +01:00

20 lines
390 B
Elixir

defmodule CampApi.PaymentLinksFixtures do
@moduledoc """
This module defines test helpers for creating
entities via the `CampApi.PaymentLinks` context.
"""
@doc """
Generate a link.
"""
def link_fixture(attrs \\ %{}) do
{:ok, link} =
attrs
|> Enum.into(%{
price: "some price"
})
|> CampApi.PaymentLinks.create_link()
link
end
end