23 lines
543 B
Elixir
23 lines
543 B
Elixir
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
|