From 452644bbf3f9f771f8f70adfd5dfb3af8ec0c862 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0ar=C5=ABnas=20Nejus?= Date: Fri, 9 Aug 2024 02:04:41 +0100 Subject: [PATCH] Remove assert_lib_dir_empty --- beets/test/helper.py | 3 --- test/test_importer.py | 10 ---------- 2 files changed, 13 deletions(-) diff --git a/beets/test/helper.py b/beets/test/helper.py index 6027aaede..7fc25d46b 100644 --- a/beets/test/helper.py +++ b/beets/test/helper.py @@ -657,9 +657,6 @@ class ImportHelper(TestHelper): """ assert not self.lib_path.joinpath(*segments).exists() - def assert_lib_dir_empty(self): - assert not os.listdir(syspath(self.libdir)) - class AsIsImporterMixin: def setUp(self): diff --git a/test/test_importer.py b/test/test_importer.py index 4fbcbf9dd..e0314a496 100644 --- a/test/test_importer.py +++ b/test/test_importer.py @@ -286,8 +286,6 @@ class ImportSingletonTest(AutotagImportTestCase): assert self.lib.albums().get() is None def test_apply_asis_adds_singleton_path(self): - self.assert_lib_dir_empty() - self.importer.add_choice(importer.Action.ASIS) self.importer.run() self.assert_file_in_lib(b"singletons", b"Tag Track 1.mp3") @@ -305,8 +303,6 @@ class ImportSingletonTest(AutotagImportTestCase): assert self.lib.albums().get() is None def test_apply_candidate_adds_singleton_path(self): - self.assert_lib_dir_empty() - self.importer.add_choice(importer.Action.APPLY) self.importer.run() self.assert_file_in_lib(b"singletons", b"Applied Track 1.mp3") @@ -404,8 +400,6 @@ class ImportTest(AutotagImportTestCase): assert self.lib.items().get().title == "Tag Track 1" def test_apply_asis_adds_album_path(self): - self.assert_lib_dir_empty() - self.importer.add_choice(importer.Action.ASIS) self.importer.run() self.assert_file_in_lib(b"Tag Artist", b"Tag Album", b"Tag Track 1.mp3") @@ -425,8 +419,6 @@ class ImportTest(AutotagImportTestCase): assert self.lib.items().get().title == "Applied Track 1" def test_apply_candidate_adds_album_path(self): - self.assert_lib_dir_empty() - self.importer.add_choice(importer.Action.APPLY) self.importer.run() self.assert_file_in_lib( @@ -603,8 +595,6 @@ class ImportTracksTest(AutotagImportTestCase): assert self.lib.albums().get() is None def test_apply_tracks_adds_singleton_path(self): - self.assert_lib_dir_empty() - self.importer.add_choice(importer.Action.TRACKS) self.importer.add_choice(importer.Action.APPLY) self.importer.add_choice(importer.Action.APPLY)