Make this test ignore my local beets config

This commit is contained in:
Šarūnas Nejus 2024-08-10 00:32:15 +01:00
parent d3bdd93bf6
commit 090b62f5b0
No known key found for this signature in database
GPG key ID: DD28F6704DBE3435

View file

@ -12,10 +12,8 @@
# The above copyright notice and this permission notice shall be # The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software. # included in all copies or substantial portions of the Software.
"""Tests for MusicBrainz API wrapper. """Tests for MusicBrainz API wrapper."""
"""
import unittest
from unittest import mock from unittest import mock
from beets import config from beets import config
@ -761,7 +759,7 @@ class ArtistFlatteningTest(BeetsTestCase):
assert flat == ("ALIASfr_P", "ALIASSORTfr_P", "CREDIT") assert flat == ("ALIASfr_P", "ALIASSORTfr_P", "CREDIT")
class MBLibraryTest(unittest.TestCase): class MBLibraryTest(BeetsTestCase):
def test_match_track(self): def test_match_track(self):
with mock.patch("musicbrainzngs.search_recordings") as p: with mock.patch("musicbrainzngs.search_recordings") as p:
p.return_value = { p.return_value = {