From 8eb53ea4a30001eabcd24b394d315c3a98207e24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lui=CC=81s=20Arteiro?= Date: Mon, 23 Jan 2023 18:31:05 +0000 Subject: [PATCH] feat: Adding seed to fix Hopps tests. #256 --- priv/repo/seeds.exs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/priv/repo/seeds.exs b/priv/repo/seeds.exs index e0f8b277..5b440fa2 100644 --- a/priv/repo/seeds.exs +++ b/priv/repo/seeds.exs @@ -10,8 +10,10 @@ if not Envar.is_set?("AUTH_API_KEY") do end if Mix.env() == :dev do + # Create item App.Item.create_item(%{text: "random text", person_id: 0, status: 2}) + # Create timers {:ok, _timer} = App.Timer.start(%{ item_id: 1, @@ -21,4 +23,8 @@ if Mix.env() == :dev do {:ok, _timer2} = App.Timer.start(%{item_id: 1, start: "2023-01-19 15:55:00", stop: nil}) + + # Create tags + {:ok, _tag} = + App.Tag.create_tag(%{text: "tag text", person_id: 0, color: "#FFFFFF"}) end