Stabilize :download-delete test

This commit is contained in:
Florian Bruhin 2016-04-26 22:56:06 +02:00
parent 3c8598f691
commit 7c3361d8da
2 changed files with 2 additions and 0 deletions

View File

@ -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')

View File

@ -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