fix module aliasing issues

This commit is contained in:
2026-05-05 23:04:01 +01:00
parent 0a7ad6af8a
commit 11396e37a8
11 changed files with 43 additions and 22 deletions
+6 -3
View File
@@ -15,6 +15,9 @@ defmodule FirehoseWeb.ConnCase do
this option is not recommended for other databases.
"""
alias Firehose.Accounts.Scope
alias Firehose.AccountsFixtures
use ExUnit.CaseTemplate
using do
@@ -45,8 +48,8 @@ defmodule FirehoseWeb.ConnCase do
test context.
"""
def register_and_log_in_user(%{conn: conn} = context) do
user = Firehose.AccountsFixtures.user_fixture()
scope = Firehose.Accounts.Scope.for_user(user)
user = AccountsFixtures.user_fixture()
scope = Scope.for_user(user)
opts =
context
@@ -74,6 +77,6 @@ defmodule FirehoseWeb.ConnCase do
defp maybe_set_token_authenticated_at(_token, nil), do: nil
defp maybe_set_token_authenticated_at(token, authenticated_at) do
Firehose.AccountsFixtures.override_token_authenticated_at(token, authenticated_at)
AccountsFixtures.override_token_authenticated_at(token, authenticated_at)
end
end