diff options
author | Irina Truong <i.chernyavska@gmail.com> | 2018-09-21 13:36:23 -0700 |
---|---|---|
committer | Irina Truong <i.chernyavska@gmail.com> | 2018-09-22 04:03:11 +0000 |
commit | 683487a873ac0b162442b2c2fbfe89fc5335acc9 (patch) | |
tree | bf56ce3b84a2ba01d4be05bab5007f7cdcfe609c /tests/test_prompt_utils.py | |
parent | 5834259535e1cf5a75204305b0533ac5559ff344 (diff) |
Attempt to fix failing tests. Add some debug info. Make imports py3-compatible.
Diffstat (limited to 'tests/test_prompt_utils.py')
-rw-r--r-- | tests/test_prompt_utils.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/test_prompt_utils.py b/tests/test_prompt_utils.py index de676366..7fb7482e 100644 --- a/tests/test_prompt_utils.py +++ b/tests/test_prompt_utils.py @@ -8,7 +8,6 @@ from pgcli.packages.prompt_utils import confirm_destructive_query def test_confirm_destructive_query_notty(): stdin = click.get_text_stream('stdin') - assert stdin.isatty() is False - - sql = 'drop database foo;' - assert confirm_destructive_query(sql) is None + if not stdin.isatty(): + sql = 'drop database foo;' + assert confirm_destructive_query(sql) is None |