diff options
author | Darik Gamble <darik.gamble@gmail.com> | 2015-02-27 09:49:12 -0500 |
---|---|---|
committer | Darik Gamble <darik.gamble@gmail.com> | 2015-02-27 10:02:12 -0500 |
commit | 1fa910b7fd537a57ec551ef567e17a539ca1cff0 (patch) | |
tree | 9a126a6248f0ffb734c88403009416760d85b085 /tests | |
parent | 09da888f88d46eddf01b73c0453f603620f781cf (diff) |
Move pgspecial suggestions to separate method
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_pgspecial.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_pgspecial.py b/tests/test_pgspecial.py index f02efac9..9d2834bc 100644 --- a/tests/test_pgspecial.py +++ b/tests/test_pgspecial.py @@ -1,6 +1,16 @@ from pgcli.packages.sqlcompletion import suggest_type from test_sqlcompletion import sorted_dicts +def test_slash_suggests_special(): + suggestions = suggest_type('\\', '\\') + assert sorted_dicts(suggestions) == sorted_dicts( + [{'type': 'special'}]) + +def test_slash_d_suggests_special(): + suggestions = suggest_type('\\d', '\\d') + assert sorted_dicts(suggestions) == sorted_dicts( + [{'type': 'special'}]) + def test_d_suggests_tables_and_schemas(): suggestions = suggest_type('\d ', '\d ') assert sorted_dicts(suggestions) == sorted_dicts([ |