##// END OF EJS Templates
Fix tab-completion for magics, other completion cleanup and fixes....
Fix tab-completion for magics, other completion cleanup and fixes. Mostly simplifying the code and updating it, no major functionality changes other than fixing magic completion, which had broken in the 0.11 refactor. Also added a small test file for completion-specific tests.

File last commit:

r856:50044c43
r2365:10038790
Show More
test_cd.ipy
18 lines | 289 B | text/plain | TextLexer
# assumes there is /tmp and /opt
def curpath():
cwd = os.path.splitdrive(os.getcwd())[1].replace('\\','/')
print cwd
return cwd
import os
cd /
assert curpath() == '/'
%cd /tmp
assert curpath() == '/tmp'
pushd /opt
assert curpath() == '/opt'
popd
assert curpath() == '/tmp'