ale/test/test_python_uv.vader

20 lines
501 B
Plaintext
Raw Permalink Normal View History

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