diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2020-07-28 03:09:50 +0100 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2020-07-28 03:09:50 +0100 |
commit | dc1377dc489937abcc6a5d0dcbfa628e0e6bdf1c (patch) | |
tree | 5ea30791dba4efddd611ea1f6f24cfa00eab8799 /test | |
parent | c617480eefc0822d52f9153906bb526ad483b9a3 (diff) | |
download | unit-dc1377dc489937abcc6a5d0dcbfa628e0e6bdf1c.tar.gz unit-dc1377dc489937abcc6a5d0dcbfa628e0e6bdf1c.tar.bz2 |
Tests: style.
Diffstat (limited to '')
-rw-r--r-- | test/test_php_targets.py | 1 | ||||
-rw-r--r-- | test/test_proxy_chunked.py | 6 | ||||
-rw-r--r-- | test/unit/applications/lang/python.py | 2 | ||||
-rw-r--r-- | test/unit/main.py | 3 |
4 files changed, 5 insertions, 7 deletions
diff --git a/test/test_php_targets.py b/test/test_php_targets.py index 9c1ba2a6..0657554a 100644 --- a/test/test_php_targets.py +++ b/test/test_php_targets.py @@ -1,4 +1,3 @@ -import unittest from unit.applications.lang.php import TestApplicationPHP class TestPHPTargets(TestApplicationPHP): diff --git a/test/test_proxy_chunked.py b/test/test_proxy_chunked.py index 2d4f7b94..f344b69a 100644 --- a/test/test_proxy_chunked.py +++ b/test/test_proxy_chunked.py @@ -1,7 +1,6 @@ -import os import re -import socket import select +import socket import time from unit.applications.lang.python import TestApplicationPython @@ -96,7 +95,8 @@ class TestProxyChunked(TestApplicationPython): "routes": [ { "action": { - "proxy": "http://127.0.0.1:" + str(self.SERVER_PORT) + "proxy": "http://127.0.0.1:" + + str(self.SERVER_PORT) } } ], diff --git a/test/unit/applications/lang/python.py b/test/unit/applications/lang/python.py index 31a04107..91559f4b 100644 --- a/test/unit/applications/lang/python.py +++ b/test/unit/applications/lang/python.py @@ -1,5 +1,5 @@ -import shutil import os +import shutil from unit.applications.proto import TestApplicationProto diff --git a/test/unit/main.py b/test/unit/main.py index 8bca888c..253ddc71 100644 --- a/test/unit/main.py +++ b/test/unit/main.py @@ -58,7 +58,6 @@ class TestUnit(unittest.TestCase): if prereq_version == 'all': for version in available_versions: self.application_type = type + ' ' + version - self.application_version = version super().run(result) elif prereq_version == 'any': self.application_type = type + ' ' + available_versions[0] @@ -166,7 +165,7 @@ class TestUnit(unittest.TestCase): self._run() def _run(self): - build_dir = os.path.join(self.pardir, 'build') + build_dir = self.pardir + '/build' self.unitd = build_dir + '/unitd' if not os.path.isfile(self.unitd): |