diff --git a/mix.exs b/mix.exs index 93bd09a7..89f1471b 100644 --- a/mix.exs +++ b/mix.exs @@ -12,7 +12,7 @@ defmodule Cannery.MixProject do aliases: aliases(), deps: deps(), dialyzer: [plt_add_apps: [:ex_unit]], - + consolidate_protocols: Mix.env() not in [:dev, :test], # ExDoc name: "Cannery", source_url: "https://gitea.bubbletea.dev/shibao/cannery", diff --git a/test/cannery/ammo_test.exs b/test/cannery/ammo_test.exs index 9ff47999..d1cd9c96 100644 --- a/test/cannery/ammo_test.exs +++ b/test/cannery/ammo_test.exs @@ -4,7 +4,7 @@ defmodule Cannery.AmmoTest do """ use Cannery.DataCase - alias Cannery.{Ammo, Ammo.AmmoType, Ammo.AmmoGroup} + alias Cannery.{Ammo, Ammo.AmmoGroup, Ammo.AmmoType} alias Ecto.Changeset @moduletag :ammo_test diff --git a/test/support/conn_case.ex b/test/support/conn_case.ex index 10eef4eb..467826a2 100644 --- a/test/support/conn_case.ex +++ b/test/support/conn_case.ex @@ -17,7 +17,7 @@ defmodule CanneryWeb.ConnCase do use ExUnit.CaseTemplate import Cannery.Fixtures - alias Cannery.{Accounts, Repo} + alias Cannery.{Accounts, Accounts.User, Repo} alias Ecto.Adapters.SQL.Sandbox using do diff --git a/test/support/fixtures.ex b/test/support/fixtures.ex index 99a85270..eba82ddb 100644 --- a/test/support/fixtures.ex +++ b/test/support/fixtures.ex @@ -58,7 +58,7 @@ defmodule Cannery.Fixtures do [_, html_token, _] = email.html_body |> String.split("[TOKEN]") [_, text_token, _] = email.text_body |> String.split("[TOKEN]") - text_token = html_token + ^text_token = html_token end def valid_user_attributes(attrs \\ %{}) do