fp/apps/bright/test/support/fixtures/socials_fixtures.ex
CJ_Clippy 719fe79f73
Some checks failed
ci / build (push) Failing after 2m28s
ci / Tests & Checks (push) Failing after 6m10s
tests for is_nsfw_live_announcement
2025-03-15 17:04:57 -08:00

24 lines
504 B
Elixir

defmodule Bright.SocialsFixtures do
@moduledoc """
This module defines test helpers for creating
entities via the `Bright.Socials` context.
"""
@doc """
Generate a platform.
"""
def x_post_fixture(attrs \\ %{}) do
{:ok, x_post} =
attrs
|> Enum.into(%{
raw: "some raw text",
url: "https://x.com/fakeuser/status/9876",
processed_at: nil,
date: DateTime.utc_now(:second)
})
|> Bright.Socials.create_x_post()
x_post
end
end