Speed up tests that only need IOMixin

This commit is contained in:
Šarūnas Nejus 2025-05-26 11:23:10 +01:00
parent 605cea9bdc
commit 9e4b117454
No known key found for this signature in database
GPG key ID: DD28F6704DBE3435
2 changed files with 5 additions and 4 deletions

View file

@ -737,7 +737,7 @@ class UpdateTest(IOMixin, BeetsTestCase):
assert item.lyrics != "new lyrics"
class PrintTest(IOMixin, BeetsTestCase):
class PrintTest(IOMixin, unittest.TestCase):
def test_print_without_locale(self):
lang = os.environ.get("LANG")
if lang:
@ -1111,7 +1111,7 @@ class ConfigTest(TestPluginTestCase):
)
class ShowModelChangeTest(IOMixin, BeetsTestCase):
class ShowModelChangeTest(IOMixin, unittest.TestCase):
def setUp(self):
super().setUp()
self.a = _common.item()
@ -1162,7 +1162,7 @@ class ShowModelChangeTest(IOMixin, BeetsTestCase):
assert "bar" in out
class ShowChangeTest(IOMixin, BeetsTestCase):
class ShowChangeTest(IOMixin, unittest.TestCase):
def setUp(self):
super().setUp()

View file

@ -16,6 +16,7 @@
import os
import shutil
import unittest
from copy import deepcopy
from random import random
@ -24,7 +25,7 @@ from beets.test import _common
from beets.test.helper import BeetsTestCase, IOMixin, control_stdin
class InputMethodsTest(IOMixin, BeetsTestCase):
class InputMethodsTest(IOMixin, unittest.TestCase):
def _print_helper(self, s):
print(s)