diff options
author | Andrey Zelenkov <zelenkov@nginx.com> | 2018-09-06 20:18:33 +0300 |
---|---|---|
committer | Andrey Zelenkov <zelenkov@nginx.com> | 2018-09-06 20:18:33 +0300 |
commit | 511a0fa7605e61f90e524edfbcbefa230573e32f (patch) | |
tree | 011538ece353c804605a05452daa344e8be2d2fd /test/unit.py | |
parent | 58d23eb5b4cc15a11fa4550dc165b6be4797525a (diff) | |
download | unit-511a0fa7605e61f90e524edfbcbefa230573e32f.tar.gz unit-511a0fa7605e61f90e524edfbcbefa230573e32f.tar.bz2 |
Tests: used relative path for configuration.
Diffstat (limited to '')
-rw-r--r-- | test/unit.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/unit.py b/test/unit.py index 973a69b7..58c8327d 100644 --- a/test/unit.py +++ b/test/unit.py @@ -334,8 +334,8 @@ class TestUnitControl(TestUnitHTTP): if isinstance(conf, dict): conf = json.dumps(conf) - if path != '/config': - path = '/config' + path + if path[:1] != '/': + path = '/config/' + path return json.loads(self.put( url=path, @@ -345,8 +345,8 @@ class TestUnitControl(TestUnitHTTP): )['body']) def conf_get(self, path='/config'): - if path != '/config': - path = '/config' + path + if path[:1] != '/': + path = '/config/' + path return json.loads(self.get( url=path, @@ -355,8 +355,8 @@ class TestUnitControl(TestUnitHTTP): )['body']) def conf_delete(self, path='/config'): - if path != '/config': - path = '/config' + path + if path[:1] != '/': + path = '/config/' + path return json.loads(self.delete( url=path, |