fp/services/bright/test/support/fixtures/vtubers_fixtures.ex

47 lines
1.2 KiB
Elixir
Raw Normal View History

2025-01-03 14:45:35 +00:00
defmodule Bright.VtubersFixtures do
@moduledoc """
This module defines test helpers for creating
entities via the `Bright.Vtubers` context.
"""
@doc """
Generate a vtuber.
"""
def vtuber_fixture(attrs \\ %{}) do
{:ok, vtuber} =
attrs
|> Enum.into(%{
carrd: "some carrd",
chaturbate: "some chaturbate",
chaturbate_id: "some chaturbate_id",
description_1: "some description_1",
description_2: "some description_2",
discord: "some discord",
display_name: "some display_name",
facebook: "some facebook",
fansly: "some fansly",
fansly_id: "some fansly_id",
image: "some image",
instagram: "some instagram",
linktree: "some linktree",
merch: "some merch",
onlyfans: "some onlyfans",
patreon: "some patreon",
pornhub: "some pornhub",
reddit: "some reddit",
slug: "some slug",
theme_color: "some theme_color",
throne: "some throne",
tiktok: "some tiktok",
twitch: "some twitch",
twitter: "some twitter",
twitter_id: "some twitter_id",
youtube: "some youtube"
})
|> Bright.Vtubers.create_vtuber()
vtuber
end
end