summaryrefslogtreecommitdiffstats
path: root/tests/test_naive_completion.py
AgeCommit message (Collapse)Author
2021-02-12Modernize code to Python 3.6+ (#1229)Miroslav Šedivý
1. `class A(object)` can be written as `class A:` 2. replace `dict([…])` and `set([…])` with `{…}` 3. use f-strings or compact `.format` 4. use `yield from` instead of `yield` in a `for` loop 5. import `mock` from `unittest` 6. expect `OSError` instead of `IOError` or `select` error 7. use Python3 defaults for file reading or `super()` 8. remove redundant parenthesis (keep those in tuples though) 9. shorten set intersection instead of creating lists 10. backslashes in strings do not have to be escaped if prepended with `r`
2020-07-31Update suggestion literals (#1195)Sky.G.Uieen
* Updated all data types literals * Updated sql functions literals * Updated changelog and auther * Updated test code * Added datatype test case
2020-03-14removed py2-related stuffGeorgy Frolov
2019-05-25black all the things. (#1049)Irina Truong
* added black to develop guide * no need for pep8radius. * changelog. * Add pre-commit checkbox. * Add pre-commit to dev reqs. * Add pyproject.toml for black. * Pre-commit config. * Add black to travis and dev reqs. * Install and run black in travis. * Remove black from dev reqs. * Lower black target version. * Re-format with black.
2019-02-08fix unhashable formatted textDick Marinus
2018-11-27Fix special commands (#973)Amjith Ramanujam
* Add tests for special commands completion.
2017-06-14Fix PEP8 empty line errorsÉtienne BERSAC
2017-04-27Complete keywords depending on previous tokenÉtienne BERSAC
Keywords list is based on https://www.postgresql.org/docs/9.6/static/sql-commands.html.
2017-03-06Add MATERIALIZED VIEW keywordsJoakim Koljonen
2016-10-31Fix issue #603Lele Gaifax
Python 3 forbids comparisons between different types: use a tuple containing a single 0 (zero) as the priority for path matches so that it can be compared with those generated by the workhorse method find_matches().
2015-05-11Fix failing tests in Python 2.Amjith Ramanujam
2014-12-27added naive completion testsIryna Cherniavska
2014-12-25Improve the Insert completion.Amjith Ramanujam
2014-12-11Add default config file to setup.py.Amjith Ramanujam
2014-12-09Add test plan and place holder stubs.Amjith Ramanujam