mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-12 02:42:56 +02:00
Uppercase DELETE_ENV_VAR
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
from . import BaseTest
|
||||
from kitty.utils import log_error
|
||||
from kitty.options.utils import delete_env_var
|
||||
from kitty.options.utils import DELETE_ENV_VAR
|
||||
|
||||
|
||||
class TestConfParsing(BaseTest):
|
||||
@@ -50,7 +50,7 @@ class TestConfParsing(BaseTest):
|
||||
opts = p('pointer_shape_when_grabbed XXX', bad_line_num=1)
|
||||
self.ae(opts.pointer_shape_when_grabbed, defaults.pointer_shape_when_grabbed)
|
||||
opts = p('env A=1', 'env B=x$A', 'env C=', 'env D', 'clear_all_shortcuts y', 'kitten_alias a b --moo', 'map f1 kitten a')
|
||||
self.ae(opts.env, {'A': '1', 'B': 'x1', 'C': '', 'D': delete_env_var})
|
||||
self.ae(opts.env, {'A': '1', 'B': 'x1', 'C': '', 'D': DELETE_ENV_VAR})
|
||||
ka = tuple(opts.keymap.values())[0]
|
||||
self.ae(ka.args, ('b', '--moo'))
|
||||
opts = p('kitty_mod alt')
|
||||
|
||||
Reference in New Issue
Block a user