summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRishi Ramraj <thereisnocowlevel@gmail.com>2018-05-15 00:41:54 -0400
committerRishi Ramraj <thereisnocowlevel@gmail.com>2018-05-15 00:41:54 -0400
commit12a47caab7eeeca438761c9c1f41a1586cb1eda1 (patch)
treeb9d1d8fe271deda41ef5d061ded08a998b855909
parenta49f5bdd0f238c84cd6f52f90ec4e661537e8a37 (diff)
Add negative test case
-rw-r--r--tests/test_pgexecute.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_pgexecute.py b/tests/test_pgexecute.py
index ea720975..05d3b5a7 100644
--- a/tests/test_pgexecute.py
+++ b/tests/test_pgexecute.py
@@ -180,6 +180,18 @@ def test_unicode_support_in_output(executor, expanded):
@dbtest
+def test_not_is_special(executor, pgspecial):
+ '''
+ is_special is set to false for database queries.
+ '''
+ query = 'select 1'
+ result = list(executor.run(query, pgspecial=pgspecial))
+ *_, success, is_special = result[0]
+ assert success == True
+ assert is_special == False
+
+
+@dbtest
def test_execute_from_file_no_arg(executor, pgspecial):
'''
\i without a filename returns an error.