Import only necessary functions from LiveViewTest
So that we don't clash with the imports of PhoenixTest
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user