Don't run LastFm.Feed in tests

This commit is contained in:
Claudio Ortolina
2024-11-04 09:45:05 +00:00
parent a0543de1f2
commit d818cdbae5
7 changed files with 34 additions and 7 deletions
+3
View File
@@ -1,5 +1,8 @@
Mox.defmock(MusicBrainz.APIBehaviourMock, for: MusicBrainz.APIBehaviour)
Application.put_env(:music_library, :musicbrainz, MusicBrainz.APIBehaviourMock)
Mox.defmock(LastFm.APIBehaviourMock, for: LastFm.APIBehaviour)
Application.put_env(:music_library, :last_fm, LastFm.APIBehaviourMock)
ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(MusicLibrary.Repo, :manual)