After "mix phx.gen.live Biddings Bidding biddings bidding_round:integer amount:integer depot_wish_one:string depot_wish_two:string".

This commit is contained in:
2026-02-11 16:14:19 +01:00
parent 7ad08fa91d
commit 2bec68b9ed
9 changed files with 677 additions and 0 deletions

View File

@ -0,0 +1,22 @@
defmodule BeetRoundServer.BiddingsFixtures do
@moduledoc """
This module defines test helpers for creating
entities via the `BeetRoundServer.Biddings` context.
"""
@doc """
Generate a bidding.
"""
def bidding_fixture(scope, attrs \\ %{}) do
attrs =
Enum.into(attrs, %{
amount: 42,
bidding_round: 42,
depot_wish_one: "some depot_wish_one",
depot_wish_two: "some depot_wish_two"
})
{:ok, bidding} = BeetRoundServer.Biddings.create_bidding(scope, attrs)
bidding
end
end