qutebrowser/tests/unit/completion
Ryan Roden-Corrent 46161c3af0 Refactor delete_cur_item.
Taking the completion widget as an argument was overly complex.
The process now looks like:

1. CompletionView gets deletion request
2. CompletionView passes selected index to CompletionModel
3. CompletionModel passes the row data to the owning category
4. The category runs its custom completion function.

This also fixes a bug. With the switch to the hybrid (list/sql)
completion model, the view was no longer updating when items were
deleted. This fixes that by ensuring the correct signals are emitted.

The SQL model must be refreshed by running the query. We could try using
a SqlTableModel so we can call removeRows instead.

The test for deleting a url fails because qmodeltester claims the length
of the query model is still 3.
2017-06-26 08:57:36 -04:00
..
test_completer.py Don't regenerate completion model needlessly. 2017-06-19 07:44:11 -04:00
test_completionmodel.py Refactor delete_cur_item. 2017-06-26 08:57:36 -04:00
test_completionwidget.py Refactor delete_cur_item. 2017-06-26 08:57:36 -04:00
test_listcategory.py Assorted small fixes for sql code review. 2017-06-19 07:44:11 -04:00
test_models.py Refactor delete_cur_item. 2017-06-26 08:57:36 -04:00
test_sqlcategory.py Fix tests for recent sql changes 2017-06-19 07:44:11 -04:00