qutebrowser/tests/end2end
Daniel Schadt 8795f89c88 tests: fix tests for downloads bdd test
The test was failing because of two reasons:

First, the old code had filename questions in DownloadManager.get and
DownloadManager.fetch which were almost identical, thus the part in
DownloadManager.get was removed in an earlier commit. All filename
asking is now done by DownloadManager.fetch. The good part is code
deduplication, the bad part is slightly modified behavior: The new code
doesn't wait for a filename to start the download, instead it tries to
fill the buffer immediately. This made the test fail because qute:// has
no registered handler, so in order for the test to pass now, the "no
crash" part is not enough, we also need to expect the "No handler"
error.

Secondly, and a rather rare (race) condition was the handling of errors
in the DownloadItem. If an error occured after the registration of
self.on_reply_error as error handler and before the check
    reply.error() != QNetworkReply.NoError
at the end of the function, the error signal would be emitted twice:
Once by _die() (called by on_reply_error), and once by the init_reply
function directly (in the last if block). This lead to duplicated error
messages. This is also explained in a comment in the file (with small
"stack traces").
2016-07-12 16:52:01 +02:00
..
data Fix some a/an misspellings 2016-07-05 08:34:03 +02:00
features tests: fix tests for downloads bdd test 2016-07-12 16:52:01 +02:00
fixtures Add --qute-bdd-webengine switch for end2end tests 2016-07-11 17:24:03 +02:00
conftest.py Fix lint 2016-05-29 18:45:09 +02:00
test_dirbrowser.py Fix some a/an misspellings 2016-07-05 08:34:03 +02:00
test_hints_html.py Clean up find-implementation in test_hints_html 2016-06-09 17:16:00 +02:00
test_insert_mode.py Stabilize tests using :follow-hint 2016-05-30 14:54:06 +02:00
test_invocations.py tests: update test_invocations for --json-logging 2016-05-30 16:00:10 +02:00
test_mhtml_e2e.py Clean up end2end test file structure 2016-05-29 18:20:00 +02:00
test_smoke.py Clean up end2end test file structure 2016-05-29 18:20:00 +02:00