defmodule MyFirstElixirVibeCode.AccountsFixtures do @moduledoc """ This module defines test helpers for creating entities via the `MyFirstElixirVibeCode.Accounts` context. """ @doc """ Generate a client. """ def client_fixture(attrs \\ %{}) do {:ok, client} = attrs |> Enum.into(%{ company_name: "some company_name", email: "some email", name: "some name" }) |> MyFirstElixirVibeCode.Accounts.create_client() client end @doc """ Generate a contractor. """ def contractor_fixture(attrs \\ %{}) do {:ok, contractor} = attrs |> Enum.into(%{ company_name: "some company_name", email: "some email", name: "some name" }) |> MyFirstElixirVibeCode.Accounts.create_contractor() contractor end end