Skip to content

Commit

Permalink
Use common temp_dir for playlist plugin directory
Browse files Browse the repository at this point in the history
  • Loading branch information
snejus committed Jul 17, 2024
1 parent f88bb4e commit 83f1016
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/plugins/test_playlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@


import os
import shutil
import tempfile
import unittest
from shlex import quote

Expand Down Expand Up @@ -72,7 +70,10 @@ def setUp(self):
self.lib.add(i3)
self.lib.add_album([i3])

self.playlist_dir = tempfile.mkdtemp()
self.playlist_dir = os.path.join(
os.fsdecode(self.temp_dir), "playlists"
)
os.makedirs(self.playlist_dir)
self.config["directory"] = self.music_dir
self.config["playlist"]["playlist_dir"] = self.playlist_dir

Expand All @@ -84,7 +85,6 @@ def setup_test(self):

def tearDown(self):
self.unload_plugins()
shutil.rmtree(self.playlist_dir)
self.teardown_beets()


Expand Down

0 comments on commit 83f1016

Please sign in to comment.