Make key config migration for clearing downloads.

This commit is contained in:
Panagiotis Ktistakis 2015-11-04 01:01:27 +02:00
parent 7dadd97f01
commit dc06787f83
2 changed files with 4 additions and 0 deletions

View File

@ -1497,4 +1497,6 @@ CHANGED_KEY_COMMANDS = [
(re.compile(r'^search *;; *clear-keychain$'), r'clear-keychain ;; search'),
(re.compile(r'^leave-mode$'), r'clear-keychain ;; leave-mode'),
(re.compile(r'^download-remove --all$'), r'download-clear'),
]

View File

@ -251,6 +251,8 @@ class TestKeyConfigParser:
('search;;foo', None),
('leave-mode', 'clear-keychain ;; leave-mode'),
('leave-mode ;; foo', None),
('download-remove --all', 'download-clear'),
]
)
def test_migrations(self, old, new_expected):