tide/tests/virtual_env.fish

23 lines
445 B
Fish
Raw Normal View History

2020-07-11 08:18:47 +03:00
@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
2020-07-11 08:30:14 +03:00
python3 -m venv .venv
2020-07-11 08:18:47 +03:00
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