File tree Expand file tree Collapse file tree 5 files changed +116
-99
lines changed Expand file tree Collapse file tree 5 files changed +116
-99
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,11 @@ export VIRTUAL_ENV_DISABLE_PROMPT=1
22
22
source $VENV_PATH /bin/activate
23
23
24
24
# install utilities
25
- $PIP install coverage flake8 psutil Sphinx pytest pytest-xdist
25
+ $PIP install coverage flake8 psutil Sphinx pytest pytest-xdist psycopg2 six psutil
26
26
27
27
# install testgres' dependencies
28
28
export PYTHONPATH=$( pwd)
29
- $PIP install .
29
+ # $PIP install .
30
30
31
31
# test code quality
32
32
flake8 .
Original file line number Diff line number Diff line change 4
4
import re
5
5
import tempfile
6
6
7
- from testgres import ExecUtilException
8
- from testgres import InvalidOperationException
9
- from testgres import LocalOperations
7
+ from .. testgres import ExecUtilException
8
+ from .. testgres import InvalidOperationException
9
+ from .. testgres import LocalOperations
10
10
11
11
from .helpers .run_conditions import RunConditions
12
12
Original file line number Diff line number Diff line change 4
4
import re
5
5
import tempfile
6
6
7
- from testgres import ExecUtilException
8
- from testgres import InvalidOperationException
9
- from testgres import RemoteOperations
10
- from testgres import ConnectionParams
7
+ from .. testgres import ExecUtilException
8
+ from .. testgres import InvalidOperationException
9
+ from .. testgres import RemoteOperations
10
+ from .. testgres import ConnectionParams
11
11
12
12
13
13
class TestRemoteOperations :
Original file line number Diff line number Diff line change 2
2
import re
3
3
import subprocess
4
4
import tempfile
5
- import testgres
6
5
import time
7
6
import six
8
7
import pytest
14
13
from contextlib import contextmanager
15
14
from shutil import rmtree
16
15
17
- from testgres import \
16
+ from .. import testgres
17
+
18
+ from ..testgres import \
18
19
InitNodeException , \
19
20
StartNodeException , \
20
21
ExecUtilException , \
25
26
InvalidOperationException , \
26
27
NodeApp
27
28
28
- from testgres import \
29
+ from .. testgres import \
29
30
TestgresConfig , \
30
31
configure_testgres , \
31
32
scoped_config , \
32
33
pop_config
33
34
34
- from testgres import \
35
+ from .. testgres import \
35
36
NodeStatus , \
36
37
ProcessType , \
37
38
IsolationLevel , \
38
39
get_new_node
39
40
40
- from testgres import \
41
+ from .. testgres import \
41
42
get_bin_path , \
42
43
get_pg_config , \
43
44
get_pg_version
44
45
45
- from testgres import \
46
+ from .. testgres import \
46
47
First , \
47
48
Any
48
49
49
50
# NOTE: those are ugly imports
50
- from testgres import bound_ports
51
- from testgres .utils import PgVer , parse_pg_version
52
- from testgres .node import ProcessProxy
51
+ from ..testgres import bound_ports
52
+ from ..testgres .utils import PgVer , parse_pg_version
53
+ from ..testgres .utils import file_tail
54
+ from ..testgres .node import ProcessProxy
53
55
54
56
55
57
def pg_version_ge (version ):
@@ -874,8 +876,6 @@ def test_auto_name(self):
874
876
assert ('testgres' in r .name )
875
877
876
878
def test_file_tail (self ):
877
- from testgres .utils import file_tail
878
-
879
879
s1 = "the quick brown fox jumped over that lazy dog\n "
880
880
s2 = "abc\n "
881
881
s3 = "def\n "
You can’t perform that action at this time.
0 commit comments