diff options
author | Amjith Ramanujam <amjith.r@gmail.com> | 2019-06-02 17:57:36 -0700 |
---|---|---|
committer | Amjith Ramanujam <amjith.r@gmail.com> | 2019-06-02 17:57:36 -0700 |
commit | 3a4562073113cdaced35333b60b22c2776eb55c9 (patch) | |
tree | a727e1fb06fbf92722d54cd29f174ca17fbe36d3 /tests | |
parent | 77bd30dc95db2c901fc762b6b188e08479423b73 (diff) |
Add \G as a temporary way to use expanded mode.
This is similar to mycli.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_pgexecute.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_pgexecute.py b/tests/test_pgexecute.py index 55d7f548..c42bcee3 100644 --- a/tests/test_pgexecute.py +++ b/tests/test_pgexecute.py @@ -86,6 +86,13 @@ def test_bools_are_treated_as_strings(executor): SELECT 1""" ) +@dbtest +def test_expanded_slash_G(executor, pgspecial): + # Tests whether we reset the expanded output after a \G. + run(executor, """create table test(a boolean)""") + run(executor, """insert into test values(True)""") + results = run(executor, """select * from test \G""", pgspecial=pgspecial) + assert pgspecial.expanded_output == False @dbtest def test_schemata_table_views_and_columns_query(executor): |