summaryrefslogtreecommitdiffstats
path: root/tests/api/ApiTester.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/api/ApiTester.py')
-rw-r--r--tests/api/ApiTester.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/api/ApiTester.py b/tests/api/ApiTester.py
index 39973b52f..e9a185947 100644
--- a/tests/api/ApiTester.py
+++ b/tests/api/ApiTester.py
@@ -3,6 +3,8 @@
from pyload.remote.JSONClient import JSONClient
from pyload.remote.WSClient import WSClient
+from tests.helper.config import webAddress, wsAddress
+
from ApiProxy import ApiProxy
class ApiTester:
@@ -29,7 +31,7 @@ class ApiTester:
self.api = api
def enableJSON(self):
- self.api = ApiProxy(JSONClient())
+ self.api = ApiProxy(JSONClient(webAddress))
def enableWS(self):
- self.api = ApiProxy(WSClient())
+ self.api = ApiProxy(WSClient(wsAddress))