Stabilize :download-delete test
This commit is contained in:
parent
3c8598f691
commit
7c3361d8da
@ -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')
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user