summaryrefslogtreecommitdiff
path: root/test/test_python_uv.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_python_uv.vader')
-rw-r--r--test/test_python_uv.vader19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/test_python_uv.vader b/test/test_python_uv.vader
new file mode 100644
index 00000000..11d202fd
--- /dev/null
+++ b/test/test_python_uv.vader
@@ -0,0 +1,19 @@
+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