qutebrowser/tests/unit/completion
Ryan Roden-Corrent 47447c047a Ensure completions are sorted after filtering.
I previously removed the sorting logic from SortFilter thinking it was
unnecessary if we construct the model with a sorted list. However, this
only worked when no pattern was set, and the items are misordered as
soon as a pattern is input.

This patch reintroduces alpha-sorting, which can be disabled by passing
sort=False to the ListCategory constructor. The session completion test
had to be tweaked as it simulated the incorrect assumption that the
session list is not alpha-ordered; sessions come out of the
session-manager pre-sorted so we may as well use alpha-sorting in the
session completion model.

Resolves #3156.
2017-11-02 22:10:00 -04:00
..
test_completer.py Remove --force for :bind and config.bind(...) 2017-10-03 20:43:38 +02:00
test_completionmodel.py Use .assert_not_called() for mocks 2017-09-22 19:58:38 +02:00
test_completionwidget.py Use .assert_not_called() for mocks 2017-09-22 19:58:38 +02:00
test_histcategory.py Adjust test_histcategory for NOT NULL constraints 2017-10-03 10:28:36 +02:00
test_listcategory.py Ensure completions are sorted after filtering. 2017-11-02 22:10:00 -04:00
test_models.py Ensure completions are sorted after filtering. 2017-11-02 22:10:00 -04:00