Files
phoenix-ausblick/test/support/fixtures/translations_fixtures.ex
Thelonius Kort 61253f301a Add mainly disfunctional test
Due to utter negligence test results are currently:

221 tests, 186 failures
2023-03-15 10:49:29 +01:00

30 lines
644 B
Elixir

defmodule Outlook.TranslationsFixtures do
@moduledoc """
This module defines test helpers for creating
entities via the `Outlook.Translations` context.
"""
# TODO: make this work
@doc """
Generate a translation.
"""
def translation_fixture(attrs \\ %{}) do
{:ok, translation} =
attrs
|> Enum.into(%{
content: %{},
date: ~U[2022-12-25 17:13:00Z],
lang: "some lang",
public: true,
teaser: "some teaser",
title: "some title",
unauthorized: true,
article_id: 1
})
|> Outlook.Translations.create_translation()
translation
end
end