summaryrefslogtreecommitdiff
path: root/tests/unit/completion/test_models.py
AgeCommit message (Collapse)Author
2022-01-04Use flake8-pytest-stylepytest-styleFlorian Bruhin
2021-07-13Handle and test more file path corner casesFlorian Bruhin
2021-03-23Clean up successful process data after 1hFlorian Bruhin
2021-03-23Sort :process completion manuallyFlorian Bruhin
2021-03-23Add a test for :process completionFlorian Bruhin
2021-03-11Changed pathlib.Path.expanduser to pathlib.Path.homeLembrun
2021-03-11Changed joinpath to /Lembrun
2021-03-09Merge branch 'master' into pathlib-/unit/completionLembrun
2021-03-03Replaced os.path by the pathlib equivalentLembrun
2021-03-02Fix lintFlorian Bruhin
2021-03-02tests: Disallow NUL for filesystem testsFlorian Bruhin
From what I can see, there's no way for an user to enter a NUL byte. Closes #6223
2021-01-27tests: Fix ~ completion test on WindowsFlorian Bruhin
2021-01-26doc: Switch URLs to httpsFlorian Bruhin
2021-01-20Bump copyright yearsFlorian Bruhin
Closes #6015
2021-01-20Rename :buffer to :tab-selectFlorian Bruhin
See #6022
2021-01-20Improve tests for filesystem completionFlorian Bruhin
2021-01-20Minor reformatFlorian Bruhin
2021-01-19Add some testsAndrew MacFie
2021-01-19Add filesystem completion to defaultAndrew MacFie
2020-12-16Retain sort order for undo completion modelJimmy
Because 10 shouldn't be higher than 2.
2020-11-25Make sure all Qt regexes are validFlorian Bruhin
2020-09-10tests: Make stubbed config less confusingFlorian Bruhin
2020-09-10Add third column to :help completionFlorian Bruhin
2020-07-29Add timestamp to :undo completionFlorian Bruhin
2020-07-29Add completion for :undoFlorian Bruhin
See #32
2020-07-29Move current tab to CompletionInfoFlorian Bruhin
That way it can be used by other future completions easily as well.
2020-07-29Fix QDateTime conversionsFlorian Bruhin
- Qt 5.7 doesn't have QDateTime::(from|to)SecsSinceEpoch, so we need to use the msecs variant instead. - We were passing a float which causes a TypeError (rather than being truncated to an int) with newer PyQt versions.
2020-07-29Merge remote-tracking branch 'origin/pr/4180' into completionFlorian Bruhin
2020-05-18Fix :tab-focus completionFlorian Bruhin
For :tab-focus, we need the tab IDs without window IDs.
2020-05-16Add completion for :tab-focusFlorian Bruhin
See #1317, #32
2020-02-13Add last visited time to :back/:forward completion.Jimmy
2020-02-13Allow more than three columns in completions.Jimmy
It seems to work!?
2020-02-13Add {back,forward}_items to tab history API.Jimmy
Also use it for the backforward completion. On webengine you can pass `-1` to `backItems()` and it'll return everything but on webkit that just crashes. So I went with a high default. Since we cannot instantiate a QWebHistory and fill it with items without triggering a page load and all the signals from that being fired I'm not sure how to do that in a unit test. I mocked out `back_items()` in the tab history API rather than `backItems()` in the backend because the AbstractHistory doesn't do anything by default.
2020-02-13Add unit test for :back/:forward completion.Jimmy
Tests that the right items show up and they are in the right order. These could be simplified and expanded by putting them in a class or turning the setup into a fixture and paramatizing them bassed off of the `current_idx` so it also tested edge cases but I'm not sure if that is warrented.
2020-02-13Models are tested for expected ordering now.Jimmy
The functionality was changed in 71191f10a28f8
2020-01-04Adjust copyrights for 2020Florian Bruhin
2019-12-20Fix errors for test_tab_completion_tabs_are_windowsJethro Cao
2019-12-20Add test for completion model under tabs_are_windowsJethro Cao
2019-10-13Remove 'app' from objregFlorian Bruhin
See #640
2019-09-13Add objects.debug_flagsFlorian Bruhin
This removes some objreg.get('args'), see #640
2019-02-22Update copyright for 2019Jay Kamat
2018-11-29Move cmdutils.cmd_dict to objects.commandsFlorian Bruhin
2018-10-11Add missing tests for configmodelFlorian Bruhin
2018-10-06Sort keys in configtypes.Dict.to_strFlorian Bruhin
Otherwise, we get inconsistent output between runs on Python 3.5
2018-10-05Get rid of data_display_may_return_noneFlorian Bruhin
This got removed in pytest-qt
2018-10-05Fix lintFlorian Bruhin
2018-10-05Merge remote-tracking branch 'origin/pr/4004'Florian Bruhin
2018-09-06Use a shared web_history fixtureFlorian Bruhin
2018-09-04Fixed pylint complaintsPhilip Scheel
2018-09-03Merged upstream, made requested modifications to the search engine code and ↵Philip Scheel
added tests