tide/tests/virtual_env.fish
2020-07-10 22:30:14 -07:00

23 lines
445 B
Fish

@mesg '---------virtual_env---------'
function _virtual_env
_tide_decolor (_tide_item_virtual_env)
end
set -l dir ~/python_project
mkdir -p $dir
cd $dir
@test 'nothing' (_virtual_env) -z
python3 -m venv .venv
source .venv/bin/activate.fish
set -lx tide_virtual_env_display projectName
@test 'projectName' (_virtual_env) = 'python_project'
set -lx tide_virtual_env_display venvName
@test 'venvName' (_virtual_env) = '.venv'
rm -r $dir