mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
test subpackage
This commit is contained in:
parent
b93d4e03a0
commit
78cc184a15
3 changed files with 9 additions and 0 deletions
|
@ -36,6 +36,10 @@ def test_relative_import():
|
|||
assert_equal('hello mom jawaka\n', relimp.sample.x)
|
||||
assert_equal('hello mom jawaka\ndark chest of wonders', relimp.y)
|
||||
|
||||
def test_sub_import():
|
||||
from xpack.sub import sample
|
||||
assert_equal('hello mom jawaka\n', sample.x)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
nose.runmodule()
|
||||
|
|
0
tests/xpack/sub/__init__.py
Normal file
0
tests/xpack/sub/__init__.py
Normal file
5
tests/xpack/sub/sample.xsh
Normal file
5
tests/xpack/sub/sample.xsh
Normal file
|
@ -0,0 +1,5 @@
|
|||
# I am a test module.
|
||||
aliases['echo'] = lambda args, stdin=None: print(' '.join(args))
|
||||
|
||||
$WAKKA = "jawaka"
|
||||
x = $(echo "hello mom" $WAKKA)
|
Loading…
Add table
Reference in a new issue