fix: remove compile-time alias to AccountsFixtures in ConnCase
Some checks failed
Build and Push / Build and Push Docker Image (push) Failing after 8m16s

This commit is contained in:
Graham McIntire 2026-08-05 07:29:15 -05:00
parent 09e65462f5
commit c61e27a7c8

View file

@ -8,7 +8,6 @@ defmodule MicrowavepropWeb.ConnCase do
alias Microwaveprop.Accounts
alias Microwaveprop.Accounts.Scope
alias Microwaveprop.Accounts.User
alias Microwaveprop.AccountsFixtures
alias Microwaveprop.DataCase
alias Phoenix.Ecto.SQL.Sandbox
@ -36,7 +35,7 @@ defmodule MicrowavepropWeb.ConnCase do
@spec register_and_log_in_user(map()) :: %{conn: Plug.Conn.t(), user: User.t(), scope: Scope.t()}
def register_and_log_in_user(%{conn: conn} = context) do
user = AccountsFixtures.user_fixture()
user = Microwaveprop.AccountsFixtures.user_fixture()
scope = Scope.for_user(user)
opts = context |> Map.take([:token_authenticated_at]) |> Enum.to_list()
@ -56,6 +55,6 @@ defmodule MicrowavepropWeb.ConnCase do
defp maybe_set_token_authenticated_at(_token, nil), do: nil
defp maybe_set_token_authenticated_at(token, authenticated_at) do
AccountsFixtures.override_token_authenticated_at(token, authenticated_at)
Microwaveprop.AccountsFixtures.override_token_authenticated_at(token, authenticated_at)
end
end