mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-18 12:06:04 +00:00
#738: Assert TF_SHELL is defined in bash and zsh aliases
This commit is contained in:
parent
bcb749722b
commit
045c8ae76c
@ -51,6 +51,7 @@ class TestBash(object):
|
||||
def test_app_alias_variables_correctly_set(self, shell):
|
||||
alias = shell.app_alias('fuck')
|
||||
assert "fuck () {" in alias
|
||||
assert 'TF_SHELL=bash' in alias
|
||||
assert "TF_ALIAS=fuck" in alias
|
||||
assert 'PYTHONIOENCODING=utf-8' in alias
|
||||
assert 'TF_SHELL_ALIASES=$(alias)' in alias
|
||||
|
@ -51,6 +51,7 @@ class TestZsh(object):
|
||||
def test_app_alias_variables_correctly_set(self, shell):
|
||||
alias = shell.app_alias('fuck')
|
||||
assert "fuck () {" in alias
|
||||
assert 'TF_SHELL=zsh' in alias
|
||||
assert "TF_ALIAS=fuck" in alias
|
||||
assert 'PYTHONIOENCODING=utf-8' in alias
|
||||
assert 'TF_SHELL_ALIASES=$(alias)' in alias
|
||||
|
Loading…
x
Reference in New Issue
Block a user