diff options
author | ERYoung11 <78834571+ERYoung11@users.noreply.github.com> | 2023-10-06 22:56:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-06 15:56:48 -0700 |
commit | 43360b5d1bcc027b9282e4ee688ed9bf50a88e97 (patch) | |
tree | 040708aeddc02b9bd992c2d0f17835c894eba8e4 /tests | |
parent | a615333686f5ac4de04aed68c2ce5d4cf7dee991 (diff) |
Added \echo & \qecho for Issue #1335 (#1371)
* Added \echo & \qecho for Issue #1335
* black + changelog updates
* trying to re-kick build process
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_main.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/test_main.py b/tests/test_main.py index 9635fc04..cbf20a6a 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -297,6 +297,22 @@ def test_i_works(tmpdir, executor): @dbtest +def test_echo_works(executor): + cli = PGCli(pgexecute=executor) + statement = r"\echo asdf" + result = run(executor, statement, pgspecial=cli.pgspecial) + assert result == ["asdf"] + + +@dbtest +def test_qecho_works(executor): + cli = PGCli(pgexecute=executor) + statement = r"\qecho asdf" + result = run(executor, statement, pgspecial=cli.pgspecial) + assert result == ["asdf"] + + +@dbtest def test_watch_works(executor): cli = PGCli(pgexecute=executor) |