pinchflat/test/support/fixtures/profiles_fixtures.ex
Kieran 4252c27f87
Initial implementation of media profiles (#7)
* [WIP] Added basic video download method

* [WIP] Very-WIP first steps at parsing options and downloading

* Made my options safe by default and removed special safe versions

* Ran html generator for mediaprofile model - leaving as-is for now

* Addressed a bunch of TODO comments
2024-01-22 20:51:28 -08:00

21 lines
486 B
Elixir

defmodule Pinchflat.ProfilesFixtures do
@moduledoc """
This module defines test helpers for creating
entities via the `Pinchflat.Profiles` context.
"""
@doc """
Generate a media_profile.
"""
def media_profile_fixture(attrs \\ %{}) do
{:ok, media_profile} =
attrs
|> Enum.into(%{
name: "some name",
output_path_template: "some output_path_template"
})
|> Pinchflat.Profiles.create_media_profile()
media_profile
end
end