summaryrefslogtreecommitdiffstats
path: root/unitest-restful.py
diff options
context:
space:
mode:
authornicolargo <nicolas@nicolargo.com>2018-08-05 17:08:05 +0200
committernicolargo <nicolas@nicolargo.com>2018-08-05 17:08:05 +0200
commit172fc2ca2c802854ad017876fc8082b02e891b69 (patch)
treed9c0291c973e4549b8e199dce0b213494af54621 /unitest-restful.py
parenta7646b64992e5f9e5680e0b5f170e29c55ebe95c (diff)
Add documentation about deps
Diffstat (limited to 'unitest-restful.py')
-rwxr-xr-xunitest-restful.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/unitest-restful.py b/unitest-restful.py
index de5f4dcf..e6a58bec 100755
--- a/unitest-restful.py
+++ b/unitest-restful.py
@@ -32,7 +32,8 @@ from glances.compat import text_type
import requests
SERVER_PORT = 61234
-URL = "http://localhost:%s/api/2" % SERVER_PORT
+API_VERSION = 2
+URL = "http://localhost:{}/api/{}".format(SERVER_PORT, API_VERSION)
pid = None
# Unitest class