mirror of
https://github.com/truewhile/MeBox.git
synced 2026-10-11 07:46:37 +08:00
优化
优化
This commit is contained in:
@@ -6,13 +6,13 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/ShukeBta/MediaStationGo/internal/model"
|
||||
"github.com/ShukeBta/MMTL/internal/model"
|
||||
)
|
||||
|
||||
func TestWriteMediaNFOUsesMappedDestinationPath(t *testing.T) {
|
||||
root := t.TempDir()
|
||||
t.Setenv("MEDIASTATION_MEDIA_DIR", root)
|
||||
t.Setenv("MEDIASTATION_MEDIA_CONTAINER_DIR", "/media")
|
||||
t.Setenv("MMTL_MEDIA_DIR", root)
|
||||
t.Setenv("MMTL_MEDIA_CONTAINER_DIR", "/media")
|
||||
mediaPath := filepath.Join(root, "电影", "测试电影.mkv")
|
||||
if err := os.MkdirAll(filepath.Dir(mediaPath), 0o755); err != nil {
|
||||
t.Fatal(err)
|
||||
|
||||
Reference in New Issue
Block a user