summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRishi Ramraj <thereisnocowlevel@gmail.com>2018-05-15 10:45:36 -0400
committerRishi Ramraj <thereisnocowlevel@gmail.com>2018-05-15 10:45:36 -0400
commit3425766deaf9715df107802ddf187c1e5aa46577 (patch)
treece49313bcf0b0d04c4c5e0aa2471513344fa2dfe /tests
parenta1d9b8a7ccce88310c8ad4f7d6bac00d3427ec65 (diff)
Code review fixes
Diffstat (limited to 'tests')
-rw-r--r--tests/test_pgexecute.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_pgexecute.py b/tests/test_pgexecute.py
index 05d3b5a7..66829c20 100644
--- a/tests/test_pgexecute.py
+++ b/tests/test_pgexecute.py
@@ -186,7 +186,7 @@ def test_not_is_special(executor, pgspecial):
'''
query = 'select 1'
result = list(executor.run(query, pgspecial=pgspecial))
- *_, success, is_special = result[0]
+ success, is_special = result[0][5:]
assert success == True
assert is_special == False
@@ -197,7 +197,7 @@ def test_execute_from_file_no_arg(executor, pgspecial):
\i without a filename returns an error.
'''
result = list(executor.run("\i", pgspecial=pgspecial))
- *_, status, sql, success, is_special = result[0]
+ status, sql, success, is_special = result[0][3:]
assert 'missing required argument' in status
assert success == False
assert is_special == True
@@ -214,7 +214,7 @@ def test_execute_from_file_io_error(os, executor, pgspecial):
# Check the result.
result = list(executor.run("\i test", pgspecial=pgspecial))
- *_, status, sql, success, is_special = result[0]
+ status, sql, success, is_special = result[0][3:]
assert status == 'test'
assert success == False
assert is_special == True