Simplify import logic and add relevant tests
Import directly redirects to the record - previous version was buggy and worked completely by chance. In addition, this commit adds extensive tests around importing a record via use of mocks.
This commit is contained in:
@@ -1,2 +1,5 @@
|
||||
Mox.defmock(APIBehaviourMock, for: MusicLibrary.Records.MusicBrainz.APIBehaviour)
|
||||
Application.put_env(:music_library, :music_brainz, APIBehaviourMock)
|
||||
|
||||
ExUnit.start()
|
||||
Ecto.Adapters.SQL.Sandbox.mode(MusicLibrary.Repo, :manual)
|
||||
|
||||
Reference in New Issue
Block a user