Skip to content

Commit

Permalink
feat: Adding seed to fix Hopps tests. #256
Browse files Browse the repository at this point in the history
  • Loading branch information
LuchoTurtle committed Jan 23, 2023
1 parent 283d3ff commit 8eb53ea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions priv/repo/seeds.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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

0 comments on commit 8eb53ea

Please sign in to comment.