1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-11-09 11:42:16 +00:00

Fixed tests

Come to think of it, I wonder how they could ever work
This commit is contained in:
Alban Féron 2021-11-28 12:15:55 +01:00
parent e8f4b2fbc2
commit 632b1bc835
No known key found for this signature in database
GPG Key ID: 8CE0313646D16165

View File

@ -7,7 +7,9 @@
import inspect
import os
import os.path
import shutil
import sys
import tempfile
import unittest
@ -46,6 +48,12 @@ class TestConfig(DefaultConfig):
self.WEBAPP.update({"mount_webui": with_webui, "mount_api": with_api})
with tempfile.NamedTemporaryFile() as tf:
if sys.platform == "win32":
self.DAEMON["socket"] = "\\\\.\\pipe\\" + os.path.basename(tf.name)
else:
self.DAEMON["socket"] = tf.name
class MockResponse:
def __init__(self, response):