From 7c3361d8daed692b044ce1cbcb653da9986b3484 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 26 Apr 2016 22:56:06 +0200 Subject: [PATCH] Stabilize :download-delete test --- qutebrowser/browser/downloads.py | 1 + tests/integration/features/downloads.feature | 1 + 2 files changed, 2 insertions(+) diff --git a/qutebrowser/browser/downloads.py b/qutebrowser/browser/downloads.py index af4a93720..aa7d99427 100644 --- a/qutebrowser/browser/downloads.py +++ b/qutebrowser/browser/downloads.py @@ -993,6 +993,7 @@ class DownloadManager(QAbstractListModel): raise cmdexc.CommandError("Download {} is not done!".format(count)) download.delete() self.remove_item(download) + log.downloads.debug("deleted download {}".format(download)) @cmdutils.register(instance='download-manager', scope='window', count='count') diff --git a/tests/integration/features/downloads.feature b/tests/integration/features/downloads.feature index fc401fe76..5e6a90252 100644 --- a/tests/integration/features/downloads.feature +++ b/tests/integration/features/downloads.feature @@ -124,6 +124,7 @@ Feature: Downloading things from a website. When I open data/downloads/download.bin And I wait until the download is finished And I run :download-delete + And I wait for "deleted download *" in the log Then the downloaded file download.bin should not exist Scenario: Deleting a download which does not exist