File tree Expand file tree Collapse file tree 14 files changed +38
-31
lines changed Expand file tree Collapse file tree 14 files changed +38
-31
lines changed Original file line number Diff line number Diff line change 18
18
import ctypes
19
19
import ctypes .util
20
20
from ctypes import c_ssize_t
21
+ from typing import Union
21
22
22
23
import msgpack
23
24
108
109
CrudError ,
109
110
call_crud ,
110
111
)
111
- from typing import Union
112
112
113
113
WWSAEWOULDBLOCK = 10035
114
114
ER_UNKNOWN_REQUEST_TYPE = 48
Original file line number Diff line number Diff line change 4
4
"""
5
5
6
6
import sys
7
- import msgpack
8
7
import hashlib
9
-
10
8
from collections .abc import Sequence , Mapping
11
9
10
+ import msgpack
12
11
13
12
from tarantool .error import DatabaseError
14
13
from tarantool .const import (
Original file line number Diff line number Diff line change 3
3
import os
4
4
import sys
5
5
import unittest
6
- import setuptools
7
6
from distutils .errors import DistutilsError
8
-
9
7
from glob import glob
10
8
9
+ import setuptools
10
+
11
11
class Test (setuptools .Command ):
12
12
user_options = []
13
13
description = 'Run tests'
Original file line number Diff line number Diff line change 1
1
import functools
2
- import pkg_resources
3
2
import re
4
3
import sys
5
4
5
+ import pkg_resources
6
+
6
7
def fetch_tarantool_version (self ):
7
8
"""Helper to fetch current Tarantool version.
8
9
"""
Original file line number Diff line number Diff line change 1
1
import socket
2
- import yaml
3
2
import re
3
+
4
4
import pkg_resources
5
+ import yaml
5
6
6
7
7
8
class TarantoolAdmin (object ):
Original file line number Diff line number Diff line change 10
10
import shutil
11
11
import subprocess
12
12
13
- from .tarantool_admin import TarantoolAdmin
14
-
15
13
from tarantool .const import (
16
14
SSL_TRANSPORT
17
15
)
18
16
17
+ from .tarantool_admin import TarantoolAdmin
19
18
20
19
def check_port (port , rais = True ):
21
20
try :
Original file line number Diff line number Diff line change 2
2
import sys
3
3
import time
4
4
import unittest
5
+
5
6
import tarantool
6
- from .lib .tarantool_server import TarantoolServer
7
7
from tarantool .error import DatabaseError
8
8
9
+ from .lib .tarantool_server import TarantoolServer
9
10
10
11
def create_server ():
11
12
srv = TarantoolServer ()
Original file line number Diff line number Diff line change 1
1
import sys
2
2
import re
3
3
import unittest
4
- import msgpack
5
4
import warnings
6
- import tarantool
5
+
6
+ import msgpack
7
7
import pandas
8
8
9
+ import tarantool
10
+ from tarantool .error import MsgpackError , MsgpackWarning
9
11
from tarantool .msgpack_ext .packer import default as packer_default
10
12
from tarantool .msgpack_ext .unpacker import ext_hook as unpacker_ext_hook
11
13
12
14
from .lib .tarantool_server import TarantoolServer
13
15
from .lib .skip import skip_or_run_datetime_test
14
- from tarantool .error import MsgpackError , MsgpackWarning
15
16
16
17
class TestSuiteDatetime (unittest .TestCase ):
17
18
@classmethod
Original file line number Diff line number Diff line change 1
1
import sys
2
2
import unittest
3
3
import decimal
4
- import msgpack
5
4
import warnings
6
- import tarantool
7
5
6
+ import msgpack
7
+
8
+ import tarantool
9
+ from tarantool .error import MsgpackError , MsgpackWarning
8
10
from tarantool .msgpack_ext .packer import default as packer_default
9
11
from tarantool .msgpack_ext .unpacker import ext_hook as unpacker_ext_hook
10
12
11
13
from .lib .tarantool_server import TarantoolServer
12
14
from .lib .skip import skip_or_run_decimal_test
13
- from tarantool .error import MsgpackError , MsgpackWarning
14
15
15
16
class TestSuiteDecimal (unittest .TestCase ):
16
17
@classmethod
Original file line number Diff line number Diff line change 1
1
import sys
2
2
import unittest
3
3
import uuid
4
- import msgpack
5
4
import warnings
6
- import tarantool
7
5
import pkg_resources
8
6
7
+ import msgpack
8
+
9
+ import tarantool
9
10
from tarantool .msgpack_ext .packer import default as packer_default
10
11
from tarantool .msgpack_ext .unpacker import ext_hook as unpacker_ext_hook
11
12
Original file line number Diff line number Diff line change 1
1
import re
2
2
import sys
3
3
import unittest
4
- import msgpack
5
4
import warnings
6
- import tarantool
5
+
6
+ import msgpack
7
7
import pandas
8
8
import pytz
9
9
10
+ import tarantool
11
+ from tarantool .error import MsgpackError
10
12
from tarantool .msgpack_ext .packer import default as packer_default
11
13
from tarantool .msgpack_ext .unpacker import ext_hook as unpacker_ext_hook
12
14
13
15
from .lib .tarantool_server import TarantoolServer
14
16
from .lib .skip import skip_or_run_datetime_test
15
- from tarantool .error import MsgpackError
16
17
17
18
class TestSuiteInterval (unittest .TestCase ):
18
19
@classmethod
Original file line number Diff line number Diff line change 1
1
import sys
2
- import pkg_resources
3
2
import unittest
4
3
import uuid
5
4
6
- import tarantool
7
- from tarantool .utils import greeting_decode , version_id
8
-
9
- from .lib .tarantool_server import TarantoolServer
5
+ import pkg_resources
10
6
7
+ import tarantool
11
8
from tarantool .const import (
12
9
IPROTO_FEATURE_STREAMS ,
13
10
IPROTO_FEATURE_TRANSACTIONS ,
14
11
IPROTO_FEATURE_ERROR_EXTENSION ,
15
12
IPROTO_FEATURE_WATCHERS ,
16
13
)
14
+ from tarantool .utils import greeting_decode , version_id
15
+
16
+ from .lib .tarantool_server import TarantoolServer
17
17
18
18
class TestSuiteProtocol (unittest .TestCase ):
19
19
@classmethod
Original file line number Diff line number Diff line change 1
1
import sys
2
2
import unittest
3
- import tarantool
4
3
import pkg_resources
5
4
5
+ import tarantool
6
+ from tarantool .error import NotSupportedError
7
+
6
8
from .lib .tarantool_server import TarantoolServer
7
9
from .lib .skip import skip_or_run_constraints_test
8
- from tarantool .error import NotSupportedError
9
10
10
11
11
12
# FIXME: I'm quite sure that there is a simpler way to count
Original file line number Diff line number Diff line change 1
1
import sys
2
2
import unittest
3
3
import uuid
4
- import msgpack
5
4
import warnings
6
- import tarantool
7
5
6
+ import msgpack
7
+
8
+ import tarantool
9
+ from tarantool .error import MsgpackError , MsgpackWarning
8
10
from tarantool .msgpack_ext .packer import default as packer_default
9
11
from tarantool .msgpack_ext .unpacker import ext_hook as unpacker_ext_hook
10
12
11
13
from .lib .tarantool_server import TarantoolServer
12
14
from .lib .skip import skip_or_run_uuid_test
13
- from tarantool .error import MsgpackError , MsgpackWarning
14
15
15
16
class TestSuiteUUID (unittest .TestCase ):
16
17
@classmethod
You can’t perform that action at this time.
0 commit comments