Skip to content

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

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 2 commits into from
Jul 18, 2018

Conversation

funbringer
Copy link
Collaborator

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 July 18, 2018 10:32
@codecov-io
Copy link

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
@funbringer funbringer deleted the master_fix_52 branch July 18, 2018 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants