Commit 8772b31f authored by Jérome Perrin's avatar Jérome Perrin

software/erp5/test: organize imports

parent 3c8e9a00
...@@ -32,7 +32,6 @@ import pathlib ...@@ -32,7 +32,6 @@ import pathlib
import socket import socket
import struct import struct
import subprocess import subprocess
import time
import typing import typing
import urllib.parse import urllib.parse
......
...@@ -10,9 +10,8 @@ import tempfile ...@@ -10,9 +10,8 @@ import tempfile
import time import time
import urllib.parse import urllib.parse
from http.server import BaseHTTPRequestHandler from http.server import BaseHTTPRequestHandler
from unittest import mock from unittest import mock
import OpenSSL.SSL
import pexpect import pexpect
import psutil import psutil
import requests import requests
...@@ -21,11 +20,11 @@ from cryptography.hazmat.backends import default_backend ...@@ -21,11 +20,11 @@ from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import hashes, serialization from cryptography.hazmat.primitives import hashes, serialization
from cryptography.hazmat.primitives.asymmetric import rsa from cryptography.hazmat.primitives.asymmetric import rsa
from cryptography.x509.oid import NameOID from cryptography.x509.oid import NameOID
from slapos.testing.testcase import ManagedResource from slapos.testing.testcase import ManagedResource
from slapos.testing.utils import (CrontabMixin, ManagedHTTPServer, from slapos.testing.utils import CrontabMixin, ManagedHTTPServer, findFreeTCPPort
findFreeTCPPort)
from . import ERP5InstanceTestCase, setUpModule, matrix, default from . import ERP5InstanceTestCase, default, matrix, setUpModule
setUpModule # pyflakes setUpModule # pyflakes
......
...@@ -37,19 +37,18 @@ import socket ...@@ -37,19 +37,18 @@ import socket
import sqlite3 import sqlite3
import ssl import ssl
import subprocess import subprocess
import sys
import tempfile import tempfile
import time import time
import unittest import unittest
import urllib.parse
import xmlrpc.client
import psutil import psutil
import requests import requests
import urllib.parse
import xmlrpc.client
import urllib3 import urllib3
from slapos.testing.utils import CrontabMixin from slapos.testing.utils import CrontabMixin
from . import ERP5InstanceTestCase, setUpModule, matrix, default, neo from . import ERP5InstanceTestCase, default, matrix, neo, setUpModule
setUpModule # pyflakes setUpModule # pyflakes
......
...@@ -25,28 +25,21 @@ ...@@ -25,28 +25,21 @@
# #
############################################################################## ##############################################################################
import os
import json
import glob
import urllib.parse
import socket
import sys
import time
import contextlib import contextlib
import datetime import datetime
import subprocess import glob
import gzip import gzip
import json
import lzma import lzma
import os
import subprocess
import urllib.parse
import MySQLdb import MySQLdb
from slapos.testing.utils import CrontabMixin from slapos.testing.utils import CrontabMixin, getPromisePluginParameterDict
from slapos.testing.utils import getPromisePluginParameterDict
from . import ERP5InstanceTestCase from . import ERP5InstanceTestCase, default, matrix, setUpModule
from . import setUpModule
from . import matrix
from . import default
setUpModule # pyflakes setUpModule # pyflakes
......
...@@ -22,9 +22,11 @@ import unittest ...@@ -22,9 +22,11 @@ import unittest
from slapos.grid.utils import md5digest from slapos.grid.utils import md5digest
from . import ERP5InstanceTestCase, setUpModule as _setUpModule from . import ERP5InstanceTestCase
from . import setUpModule as _setUpModule
from .test_erp5 import TestPublishedURLIsReachableMixin from .test_erp5 import TestPublishedURLIsReachableMixin
# skip tests when software release is built with wendelin.core 1. # skip tests when software release is built with wendelin.core 1.
def setUpModule(): def setUpModule():
_setUpModule() _setUpModule()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment