Skip to content

Commit

Permalink
use temp dir for test
Browse files Browse the repository at this point in the history
  • Loading branch information
ancientjpeg committed Mar 20, 2024
1 parent 1c39dcd commit 93ca5da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/service/test_service_caching.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from mussty.define.types import *
from pathlib import Path
from uuid import uuid4
import tempfile


def gen_song():
Expand All @@ -18,7 +19,7 @@ def gen_playlist():


class CachingService(Service):
cachefile = Path("test_cache.json")
cachefile = Path(tempfile.gettempdir()) / "test_cache.json"
pass


Expand Down

0 comments on commit 93ca5da

Please sign in to comment.