Skip to content

Small fixes #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 20, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ install:
- pip install flake8

script:
- flake8 --ignore=W191,F401,E501 .
- flake8 --ignore=W191,F401,E501,F403 .

notifications:
email:
Expand Down
2 changes: 1 addition & 1 deletion testgres/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from .testgres import PostgresNode, get_new_node, clean_all, stop_all
from .testgres import *
4 changes: 2 additions & 2 deletions testgres/testgres.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def get_bin_path(self, filename):
else:
return os.path.join(pg_config.get("BINDIR"), filename)

def init(self, allows_streaming=False):
def init(self, allows_streaming=False, initdb_params=[]):
""" Performs initdb """

postgres_conf = os.path.join(self.data_dir, "postgresql.conf")
Expand All @@ -195,7 +195,7 @@ def init(self, allows_streaming=False):
initdb = self.get_bin_path("initdb")
with open(os.path.join(self.logs_dir, "initdb.log"), "a") as file_out:
ret = subprocess.call(
[initdb, self.data_dir, "-N"],
[initdb, self.data_dir, "-N"] + initdb_params,
stdout=file_out,
stderr=subprocess.STDOUT
)
Expand Down