We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6bab56 commit f4b831bCopy full SHA for f4b831b
2 files changed
ftplugin/python/switch.vim
@@ -7,4 +7,5 @@ let b:switch_definitions =
7
\ g:switch_builtins.python_dict_get,
8
\ g:switch_builtins.python_string_style,
9
\ g:switch_builtins.python_dict_style,
10
+ \ g:switch_builtins.python_asserts,
11
\ ]
plugin/switch.vim
@@ -253,6 +253,12 @@ let g:switch_builtins =
253
\ '''\(\%([^''\\]\|\\.\)*\)''': '"\1"',
254
\ 'f\@!"\(\%([^"\\]\|\\.\)*\)"': 'f"\1"',
255
\ },
256
+ \ 'python_asserts': {
257
+ \ '\<assertTrue\>': 'assertFalse',
258
+ \ '\<assertFalse\>': 'assertTrue',
259
+ \ '\<assertIsNone\>': 'assertIsNotNone',
260
+ \ '\<assertIsNotNone\>': 'assertIsNone',
261
+ \ },
262
\ }
263
264
let g:switch_definitions =
0 commit comments