Skip to content
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

safe_psql() should always raise error on wrong input (issue #52) #53

Merged
merged 2 commits into from Jul 18, 2018

Conversation

@funbringer
Copy link
Collaborator

@funbringer funbringer commented Jul 18, 2018

This PR adds **kwargs to PostgresNode.psql() which allows user to set psql's variables before execution. Moreover, PostgresNode.safe_psql() will always enable ON_ERROR_STOP, which facilitates error detection in scripts run via -f option.

@funbringer funbringer requested a review from ildus Jul 18, 2018
@codecov-io
Copy link

@codecov-io codecov-io commented Jul 18, 2018

Codecov Report

Merging #53 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #53      +/-   ##
==========================================
+ Coverage   97.31%   97.31%   +<.01%     
==========================================
  Files          17       17              
  Lines        1562     1565       +3     
==========================================
+ Hits         1520     1523       +3     
  Misses         42       42
Impacted Files Coverage Δ
testgres/node.py 97.55% <100%> (+0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6e303fe...b9648ee. Read the comment docs.

@ildus ildus merged commit aad54d8 into master Jul 18, 2018
4 checks passed
4 checks passed
codecov/patch 100% of diff hit (target 97.31%)
Details
codecov/project 97.31% (+<.01%) compared to 6e303fe
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
@funbringer funbringer deleted the master_fix_52 branch Jul 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.