24 lines
509 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/projektmelody/status/9876",
processed_at: nil,
date: DateTime.utc_now(:second)
})
|> Bright.Socials.create_x_post()
x_post
end
end