Before: call ale#test#SetDirectory('/testplugin/test') After: call ale#test#RestoreDirectory() Execute(ale#python#UvPresent is true when a uv environment is present): call ale#test#SetFilename('test-files/python/uv/whatever.py') AssertEqual \ ale#python#UvPresent(bufnr('%')), \ 1 Execute(ale#python#UvPresent is false when no uv environment is present): call ale#test#SetFilename('test-files/python/no_uv/whatever.py') AssertEqual \ ale#python#UvPresent(bufnr('%')), \ 0