From 5bc395a89a6fddd96ed108ad0d92c547d085de50 Mon Sep 17 00:00:00 2001 From: Kayla Firestack Date: Mon, 21 Oct 2024 13:19:34 -0400 Subject: [PATCH] feat(ex/test/factory): make user factory dynamic --- test/support/factory.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/support/factory.ex b/test/support/factory.ex index f93bcb52f..02ccdcda4 100644 --- a/test/support/factory.ex +++ b/test/support/factory.ex @@ -130,8 +130,8 @@ defmodule Skate.Factory do def user_factory do %Skate.Settings.Db.User{ uuid: Ecto.UUID.generate(), - email: sequence("test@mbta.com"), - username: sequence("test_user") + email: sequence(:user_email, &"test-#{&1}@mbta.com"), + username: sequence("Skate.Settings.Db.User.username:") } end