Replace unittest.TestCase, ImportHelper by ImportTestCase

This commit is contained in:
Šarūnas Nejus
2024-07-03 12:01:41 +01:00
parent 6c1e26acc9
commit 0b5b94460a
6 changed files with 28 additions and 27 deletions

View File

@@ -19,7 +19,7 @@ import os
import unittest
from beets import importer
from beets.test.helper import AutotagStub, ImportHelper
from beets.test.helper import AutotagStub, ImportTestCase
from beets.util import displayable_path, syspath
from beetsplug.importadded import ImportAddedPlugin
@@ -40,7 +40,7 @@ def modify_mtimes(paths, offset=-60000):
os.utime(syspath(path), (mstat.st_atime, mstat.st_mtime + offset * i))
class ImportAddedTest(unittest.TestCase, ImportHelper):
class ImportAddedTest(ImportTestCase):
# The minimum mtime of the files to be imported
min_mtime = None