diff options
author | Darik Gamble <darik.gamble@gmail.com> | 2015-05-22 18:07:35 -0400 |
---|---|---|
committer | Darik Gamble <darik.gamble@gmail.com> | 2015-05-23 08:33:42 -0400 |
commit | 4e46c01d3cce7958467a98a352012ba53e891e25 (patch) | |
tree | a06b4230a5711d0c6ac242aa198191548d4ee948 /tests | |
parent | 9e621ba97c7981647c5b3e984f6132b107f3822f (diff) |
Gross test that \dt, \df etc. run without error
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_pgexecute.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_pgexecute.py b/tests/test_pgexecute.py index 02ddd578..c8dee913 100644 --- a/tests/test_pgexecute.py +++ b/tests/test_pgexecute.py @@ -180,3 +180,14 @@ def test_large_numbers_render_directly(executor, value): "insert into numbertest (a) values ({0})".format(value)) assert value in run(executor, "select * from numbertest", join=True) + + +@dbtest +@pytest.mark.parametrize('command', ['di', 'dv', 'ds', 'df', 'dT']) +@pytest.mark.parametrize('verbose', ['', '+']) +@pytest.mark.parametrize('pattern', ['', 'x', '*.*', 'x.y', 'x.*', '*.y']) +def test_describe_special(executor, command, verbose, pattern): + # We don't have any tests for the output of any of the special commands, + # but we can at least make sure they run without error + sql = r'\{command}{verbose} {pattern}'.format(**locals()) + executor.run(sql)
\ No newline at end of file |