qutebrowser/tests
Florian Bruhin 74c7ff2641 tests: Properly delete webengine DownloadManager objects
We create the DownloadManager with parent=qapp, which means they will stick
around forever after the test finished.

While we disconnect the QWebEngineProfile::downloadRequested() signal,
we keep the DownloadManager around, which also keeps around its download-update
timers.

Those will then result in tests/unit/utils/usertypes/test_timer.py::test_early_timeout_check
being flaky, as their _validity_check_handler slot keeps getting called in the
background. Due to the globally mocked time.monotonic(), this results in
nonsensical error messages such as:

    Got logging message on logger misc with level WARNING:
    Timer download-update (id ...) triggered too early:
    interval 500 but only -1023.269s passed!

After this change, we now clean up those objects properly, thus fixing the
flakiness.

See #5390.
2025-05-07 14:06:03 +02:00
..
end2end tests: Ignore another message 2025-04-13 14:53:21 +02:00
helpers tests: Properly delete mode_manager instances 2025-05-07 13:22:10 +02:00
manual Rename :buffer to :tab-select 2021-01-20 18:00:38 +01:00
unit tests: Properly delete webengine DownloadManager objects 2025-05-07 14:06:03 +02:00
conftest.py tests: Avoid CI issues with qutescheme and Qt 6.9 2025-04-08 14:03:26 +02:00
test_conftest.py reuse: Initial copyright text update for myself 2023-07-23 12:49:05 +02:00