fix test cases, support in memory db

This commit is contained in:
alicezou 2022-03-27 15:06:00 -04:00
parent d3d9318c18
commit 879ed7f5c2

View file

@ -903,6 +903,8 @@ class Database:
# Check whether parental directories exist.
def _path_checker(self, path):
if path == ":memory:": # For testing
return
newpath = os.path.dirname(path)
if not os.path.isdir(newpath):
from beets.ui.commands import database_dir_creation