File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 66
77import beets .test ._common
88import werkzeug .serving
9+ from beets .test .helper import PluginMixin as BeetsPluginMixin
910from beets .test .helper import TestHelper as BeetsTestHelper
1011from beets .util import bytestring_path
1112from beetsplug .web import app as beets_web_app
@@ -31,9 +32,11 @@ class BeetsAlbum(NamedTuple):
3132beets .test ._common .RSRC = bytestring_path (TEST_DATA_DIRECTORY / "beets-rsrc" ) # noqa: SLF001
3233
3334
34- class BeetsLibrary (BeetsTestHelper ):
35+ class BeetsLibrary (BeetsPluginMixin , BeetsTestHelper ):
3536 """Provide a temporary Beets library for testing against a real Beets web plugin."""
3637
38+ db_on_disk = True
39+
3740 def __init__ (
3841 self ,
3942 bind_host : str = "127.0.0.1" ,
@@ -49,7 +52,7 @@ def __init__(
4952 self ._bind_port = bind_port
5053 self ._server = None
5154
52- self .setup_beets (disk = True )
55+ self .setup_beets ()
5356 self ._app .config ["lib" ] = self .lib
5457 self .load_plugins ("web" )
5558 # prepare the server instance
You can’t perform that action at this time.
0 commit comments