mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 08:39:17 +01:00
Speed up tests that only need IOMixin
This commit is contained in:
parent
605cea9bdc
commit
9e4b117454
2 changed files with 5 additions and 4 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue