Tests: style.
This commit is contained in:
@@ -4,7 +4,6 @@ import platform
|
||||
import re
|
||||
import shutil
|
||||
import signal
|
||||
import socket
|
||||
import stat
|
||||
import subprocess
|
||||
import sys
|
||||
@@ -13,11 +12,10 @@ import time
|
||||
from multiprocessing import Process
|
||||
|
||||
import pytest
|
||||
|
||||
from unit.check.go import check_go
|
||||
from unit.check.isolation import check_isolation
|
||||
from unit.check.node import check_node
|
||||
from unit.check.tls import check_openssl
|
||||
from unit.check.isolation import check_isolation
|
||||
from unit.option import option
|
||||
from unit.utils import public_dir
|
||||
from unit.utils import waitforfiles
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import time
|
||||
|
||||
import pytest
|
||||
|
||||
from unit.applications.lang.python import TestApplicationPython
|
||||
from unit.option import option
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ import time
|
||||
from distutils.version import LooseVersion
|
||||
|
||||
import pytest
|
||||
|
||||
from unit.applications.lang.python import TestApplicationPython
|
||||
from unit.option import option
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@ import os
|
||||
from distutils.version import LooseVersion
|
||||
|
||||
import pytest
|
||||
|
||||
from conftest import unit_stop
|
||||
from unit.applications.lang.python import TestApplicationPython
|
||||
from unit.option import option
|
||||
|
||||
@@ -3,7 +3,6 @@ import time
|
||||
from distutils.version import LooseVersion
|
||||
|
||||
import pytest
|
||||
|
||||
from unit.applications.lang.python import TestApplicationPython
|
||||
from unit.applications.websockets import TestApplicationWebsocket
|
||||
from unit.option import option
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import pytest
|
||||
|
||||
from unit.control import TestControl
|
||||
|
||||
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
import grp
|
||||
import os
|
||||
import pwd
|
||||
import shutil
|
||||
|
||||
import pytest
|
||||
|
||||
from unit.applications.lang.go import TestApplicationGo
|
||||
from unit.option import option
|
||||
from unit.utils import getns
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import os
|
||||
|
||||
import pytest
|
||||
|
||||
from unit.applications.lang.go import TestApplicationGo
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import pytest
|
||||
|
||||
from unit.applications.lang.python import TestApplicationPython
|
||||
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@ import os
|
||||
import subprocess
|
||||
|
||||
import pytest
|
||||
|
||||
from unit.applications.lang.java import TestApplicationJava
|
||||
from unit.option import option
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@ import struct
|
||||
import time
|
||||
|
||||
import pytest
|
||||
|
||||
from unit.applications.lang.java import TestApplicationJava
|
||||
from unit.applications.websockets import TestApplicationWebsocket
|
||||
from unit.option import option
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import re
|
||||
|
||||
import pytest
|
||||
|
||||
from unit.applications.lang.node import TestApplicationNode
|
||||
from unit.utils import waitforfiles
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@ import struct
|
||||
import time
|
||||
|
||||
import pytest
|
||||
|
||||
from unit.applications.lang.node import TestApplicationNode
|
||||
from unit.applications.websockets import TestApplicationWebsocket
|
||||
from unit.option import option
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import re
|
||||
|
||||
import pytest
|
||||
|
||||
from unit.applications.lang.perl import TestApplicationPerl
|
||||
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@ import time
|
||||
from subprocess import call
|
||||
|
||||
import pytest
|
||||
|
||||
from unit.applications.lang.php import TestApplicationPHP
|
||||
from unit.option import option
|
||||
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
import shutil
|
||||
|
||||
import pytest
|
||||
|
||||
from unit.applications.lang.php import TestApplicationPHP
|
||||
from unit.option import option
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ import socket
|
||||
import time
|
||||
|
||||
import pytest
|
||||
|
||||
from conftest import run_process
|
||||
from unit.applications.lang.python import TestApplicationPython
|
||||
from unit.option import option
|
||||
|
||||
@@ -4,7 +4,6 @@ import re
|
||||
import time
|
||||
|
||||
import pytest
|
||||
|
||||
from unit.applications.lang.python import TestApplicationPython
|
||||
from unit.option import option
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
import shutil
|
||||
|
||||
import pytest
|
||||
|
||||
from unit.applications.lang.python import TestApplicationPython
|
||||
from unit.option import option
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import pytest
|
||||
|
||||
from unit.applications.lang.python import TestApplicationPython
|
||||
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ import subprocess
|
||||
import time
|
||||
|
||||
import pytest
|
||||
|
||||
from unit.applications.lang.python import TestApplicationPython
|
||||
from unit.option import option
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import pytest
|
||||
|
||||
from unit.applications.proto import TestApplicationProto
|
||||
from unit.option import option
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import re
|
||||
|
||||
import pytest
|
||||
|
||||
from unit.applications.lang.ruby import TestApplicationRuby
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import os
|
||||
import shutil
|
||||
|
||||
import os
|
||||
import pytest
|
||||
|
||||
from unit.applications.lang.ruby import TestApplicationRuby
|
||||
from unit.option import option
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ import socket
|
||||
import time
|
||||
|
||||
import pytest
|
||||
|
||||
from unit.applications.lang.python import TestApplicationPython
|
||||
|
||||
|
||||
@@ -297,4 +296,3 @@ Connection: close
|
||||
assert bool(resp), 'response from application 4'
|
||||
assert resp['status'] == 200, 'status 4'
|
||||
assert resp['body'] == body, 'body 4'
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@ import os
|
||||
import socket
|
||||
|
||||
import pytest
|
||||
|
||||
from unit.applications.proto import TestApplicationProto
|
||||
from unit.option import option
|
||||
from unit.utils import waitforfiles
|
||||
|
||||
@@ -4,7 +4,6 @@ import ssl
|
||||
import subprocess
|
||||
|
||||
import pytest
|
||||
|
||||
from unit.applications.tls import TestApplicationTLS
|
||||
from unit.option import option
|
||||
|
||||
|
||||
Reference in New Issue
Block a user