From d3b27b4ba96ca8236776a67a6cbf1cfdccb2b37a Mon Sep 17 00:00:00 2001 From: Petitminion Date: Fri, 3 Nov 2023 19:52:24 +0100 Subject: [PATCH] resolve test 2 Part-of: --- api/tests/conftest.py | 5 +++++ api/tests/test_import_audio_file.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/api/tests/conftest.py b/api/tests/conftest.py index d241db5a7..99d943b20 100644 --- a/api/tests/conftest.py +++ b/api/tests/conftest.py @@ -429,3 +429,8 @@ def clear_license_cache(db): @pytest.fixture def faker(): return factory.Faker._get_faker() + + +@pytest.fixture() +def dont_check_mbid(settings): + settings.ONLY_ALLOW_MUSICBRAINZ_TAGGED_FILES = False diff --git a/api/tests/test_import_audio_file.py b/api/tests/test_import_audio_file.py index 398b7aaa1..f096788f1 100644 --- a/api/tests/test_import_audio_file.py +++ b/api/tests/test_import_audio_file.py @@ -364,7 +364,7 @@ def test_handle_modified_update_existing_path_if_found_and_attributed_to( update_track_metadata.assert_not_called() -def test_import_files(factories, capsys): +def test_import_files(factories, capsys, dont_check_mbid): # smoke test to ensure the command run properly library = factories["music.Library"](actor__local=True) call_command(