Import only necessary functions from LiveViewTest

So that we don't clash with the imports of PhoenixTest
This commit is contained in:
Claudio Ortolina
2025-01-05 15:38:55 +00:00
parent 04f5c6e5a1
commit 75154df3cf
4 changed files with 1 additions and 3 deletions
@@ -1,7 +1,6 @@
defmodule MusicLibraryWeb.ArtistLive.ShowTest do
use MusicLibraryWeb.ConnCase
import Phoenix.LiveViewTest
import MusicLibrary.RecordsFixtures
import LastFm.Fixtures
import Mox
@@ -1,7 +1,6 @@
defmodule MusicLibraryWeb.CollectionLive.IndexTest do
use MusicLibraryWeb.ConnCase
import Phoenix.LiveViewTest
import MusicLibrary.RecordsFixtures
import MusicLibrary.ReleaseGroupsFixtures
import Mox
@@ -1,7 +1,6 @@
defmodule MusicLibraryWeb.CollectionLive.ShowTest do
use MusicLibraryWeb.ConnCase
import Phoenix.LiveViewTest
import MusicLibrary.RecordsFixtures
alias MusicLibrary.Records.Record
+1
View File
@@ -29,6 +29,7 @@ defmodule MusicLibraryWeb.ConnCase do
import Phoenix.ConnTest
import MusicLibraryWeb.ConnCase
import PhoenixTest
import Phoenix.LiveViewTest, only: [render: 1, render_async: 1]
end
end