mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
update test cases
This commit is contained in:
parent
80d4afdd91
commit
e63c57acd5
1 changed files with 12 additions and 4 deletions
|
@ -1,3 +1,6 @@
|
|||
import builtins
|
||||
|
||||
|
||||
def test_simple():
|
||||
assert 1 + 1 == 2
|
||||
|
||||
|
@ -10,7 +13,12 @@ def test_envionment():
|
|||
|
||||
|
||||
def test_xonsh_party():
|
||||
x = 'xonsh'
|
||||
y = 'party'
|
||||
out = $(echo @(x + '-' + y)).strip()
|
||||
assert out == 'xonsh-party', 'Out really was <' + out + '>, sorry.'
|
||||
orig = builtins.__xonsh_env__.get('XONSH_INTERACTIVE')
|
||||
builtins.__xonsh_env__['XONSH_INTERACTIVE'] = False
|
||||
try:
|
||||
x = 'xonsh'
|
||||
y = 'party'
|
||||
out = $(echo @(x + '-' + y)).strip()
|
||||
assert out == 'xonsh-party', 'Out really was <' + out + '>, sorry.'
|
||||
finally:
|
||||
builtins.__xonsh_env__['XONSH_INTERACTIVE'] = orig
|
||||
|
|
Loading…
Add table
Reference in a new issue