summaryrefslogtreecommitdiffstats
path: root/tests/test_prompt_utils.py
diff options
context:
space:
mode:
authorIrina Truong <i.chernyavska@gmail.com>2019-05-25 13:08:56 -0700
committerGitHub <noreply@github.com>2019-05-25 13:08:56 -0700
commit8cb7009bcd0f0062942932c853706a36178f566c (patch)
treecb5bb42674ccce90b173e7a2f09bf72157ae4a86 /tests/test_prompt_utils.py
parenta5e607b6fc889afd3f8960ca3903ae16b641c304 (diff)
black all the things. (#1049)
* added black to develop guide * no need for pep8radius. * changelog. * Add pre-commit checkbox. * Add pre-commit to dev reqs. * Add pyproject.toml for black. * Pre-commit config. * Add black to travis and dev reqs. * Install and run black in travis. * Remove black from dev reqs. * Lower black target version. * Re-format with black.
Diffstat (limited to 'tests/test_prompt_utils.py')
-rw-r--r--tests/test_prompt_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_prompt_utils.py b/tests/test_prompt_utils.py
index 7fb7482e..4986dc57 100644
--- a/tests/test_prompt_utils.py
+++ b/tests/test_prompt_utils.py
@@ -7,7 +7,7 @@ from pgcli.packages.prompt_utils import confirm_destructive_query
def test_confirm_destructive_query_notty():
- stdin = click.get_text_stream('stdin')
+ stdin = click.get_text_stream("stdin")
if not stdin.isatty():
- sql = 'drop database foo;'
+ sql = "drop database foo;"
assert confirm_destructive_query(sql) is None