Make key config migration for clearing downloads.
This commit is contained in:
parent
7dadd97f01
commit
dc06787f83
@ -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'),
|
||||
]
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user