Tests: style.

This commit is contained in:
Andrei Zeliankou
2020-07-28 03:09:50 +01:00
parent c617480eef
commit dc1377dc48
4 changed files with 5 additions and 7 deletions

View File

@@ -1,4 +1,3 @@
import unittest
from unit.applications.lang.php import TestApplicationPHP from unit.applications.lang.php import TestApplicationPHP
class TestPHPTargets(TestApplicationPHP): class TestPHPTargets(TestApplicationPHP):

View File

@@ -1,7 +1,6 @@
import os
import re import re
import socket
import select import select
import socket
import time import time
from unit.applications.lang.python import TestApplicationPython from unit.applications.lang.python import TestApplicationPython
@@ -96,7 +95,8 @@ class TestProxyChunked(TestApplicationPython):
"routes": [ "routes": [
{ {
"action": { "action": {
"proxy": "http://127.0.0.1:" + str(self.SERVER_PORT) "proxy": "http://127.0.0.1:"
+ str(self.SERVER_PORT)
} }
} }
], ],

View File

@@ -1,5 +1,5 @@
import shutil
import os import os
import shutil
from unit.applications.proto import TestApplicationProto from unit.applications.proto import TestApplicationProto

View File

@@ -58,7 +58,6 @@ class TestUnit(unittest.TestCase):
if prereq_version == 'all': if prereq_version == 'all':
for version in available_versions: for version in available_versions:
self.application_type = type + ' ' + version self.application_type = type + ' ' + version
self.application_version = version
super().run(result) super().run(result)
elif prereq_version == 'any': elif prereq_version == 'any':
self.application_type = type + ' ' + available_versions[0] self.application_type = type + ' ' + available_versions[0]
@@ -166,7 +165,7 @@ class TestUnit(unittest.TestCase):
self._run() self._run()
def _run(self): def _run(self):
build_dir = os.path.join(self.pardir, 'build') build_dir = self.pardir + '/build'
self.unitd = build_dir + '/unitd' self.unitd = build_dir + '/unitd'
if not os.path.isfile(self.unitd): if not os.path.isfile(self.unitd):