qutebrowser/tests/unit/completion
toofar 00daefff7e Add test to ensure `set_model(None)` cleans up
We want to make sure that the selection model gets deleted when clearing
the model, since we are switching from doing that directly to having it
happen indirectly based off of signals we don't manage.

Hopefully this doesn't end up to be flaky. I think we are depending on
this happening in two different Qt even loop runs (`model.deleteLater()`
in the first one then `selmod.deleteLater()` gets called from the
`model.deleted` signal).

I tried using `qtbot.wait_signals()` with a list but it segfaulted in
some cleanup method. Perhaps is doesn't handle the deleted signal well?

Alternately we could maybe just wait for the selmodel one and check
`sip.isdelted(model)` to check the model is gone too.
2024-06-09 18:16:01 +12:00
..
test_completer.py remove unneeded QTimer imports 2024-05-25 09:34:01 +12:00
test_completiondelegate.py reuse: Update remaining copyright texts 2023-07-23 12:52:01 +02:00
test_completionmodel.py reuse: Update remaining copyright texts 2023-07-23 12:52:01 +02:00
test_completionwidget.py Add test to ensure `set_model(None)` cleans up 2024-06-09 18:16:01 +12:00
test_histcategory.py reuse: Update remaining copyright texts 2023-07-23 12:52:01 +02:00
test_listcategory.py Reapply "Merge pull request #7955 from arza-zara/search_any_order" 2024-01-12 18:53:22 +01:00
test_models.py Update for new pylint/astroid releases 2024-05-24 21:46:04 +02:00