Skip to content

Commit 144c3b8

Browse files
authored
Merge pull request #17 from stalkerg/small_fixes
minor fixes (by @stalkerg)
2 parents ef1da6c + 7e0e8dd commit 144c3b8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ install:
1212
- pip install flake8
1313

1414
script:
15-
- flake8 --ignore=W191,F401,E501 .
15+
- flake8 --ignore=W191,F401,E501,F403 .
1616

1717
notifications:
1818
email:

testgres/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
from .testgres import PostgresNode, get_new_node, clean_all, stop_all
1+
from .testgres import *

testgres/testgres.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def get_bin_path(self, filename):
179179
else:
180180
return os.path.join(pg_config.get("BINDIR"), filename)
181181

182-
def init(self, allows_streaming=False):
182+
def init(self, allows_streaming=False, initdb_params=[]):
183183
""" Performs initdb """
184184

185185
postgres_conf = os.path.join(self.data_dir, "postgresql.conf")
@@ -195,7 +195,7 @@ def init(self, allows_streaming=False):
195195
initdb = self.get_bin_path("initdb")
196196
with open(os.path.join(self.logs_dir, "initdb.log"), "a") as file_out:
197197
ret = subprocess.call(
198-
[initdb, self.data_dir, "-N"],
198+
[initdb, self.data_dir, "-N"] + initdb_params,
199199
stdout=file_out,
200200
stderr=subprocess.STDOUT
201201
)

0 commit comments

Comments
 (0)