From dd665cd475a705780a523ba8f173fdd0da352022 Mon Sep 17 00:00:00 2001 From: Kayla Firestack Date: Mon, 21 Oct 2024 13:19:34 -0400 Subject: [PATCH] feat(ex/test/conn-case): make default user dynamic from factory --- test/support/conn_case.ex | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/support/conn_case.ex b/test/support/conn_case.ex index c6928ac83..9bc66925c 100644 --- a/test/support/conn_case.ex +++ b/test/support/conn_case.ex @@ -17,7 +17,6 @@ defmodule SkateWeb.ConnCase do use ExUnit.CaseTemplate import Plug.Test - alias Skate.Settings.User using do quote do @@ -36,10 +35,7 @@ defmodule SkateWeb.ConnCase do setup tags do Skate.DataCase.setup_sandbox(tags) - username = "test_user" - email = "test_user@test.com" - - user = User.upsert(username, email) + user = Skate.Factory.insert(:user) resource = %{id: user.id} {conn, user} =