mirror of
https://github.com/spl0k/supysonic.git
synced 2024-12-22 17:06:17 +00:00
Fixed tests
Come to think of it, I wonder how they could ever work
This commit is contained in:
parent
e8f4b2fbc2
commit
632b1bc835
@ -7,7 +7,9 @@
|
|||||||
|
|
||||||
import inspect
|
import inspect
|
||||||
import os
|
import os
|
||||||
|
import os.path
|
||||||
import shutil
|
import shutil
|
||||||
|
import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
@ -46,6 +48,12 @@ class TestConfig(DefaultConfig):
|
|||||||
|
|
||||||
self.WEBAPP.update({"mount_webui": with_webui, "mount_api": with_api})
|
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:
|
class MockResponse:
|
||||||
def __init__(self, response):
|
def __init__(self, response):
|
||||||
|
Loading…
Reference in New Issue
Block a user