summaryrefslogtreecommitdiff
path: root/test/linter/test_bandit.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/linter/test_bandit.vader')
-rw-r--r--test/linter/test_bandit.vader10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/linter/test_bandit.vader b/test/linter/test_bandit.vader
index e9488c00..803e3bf2 100644
--- a/test/linter/test_bandit.vader
+++ b/test/linter/test_bandit.vader
@@ -67,6 +67,16 @@ Execute(Poetry is detected when python_bandit_auto_poetry is set):
\ . b:bandit_flags
\ . ' -'
+Execute(uv is used when python_bandit_auto_uv is set):
+ let g:ale_python_bandit_auto_uv = 1
+ call ale#test#SetFilename('../test-files/python/uv/whatever.py')
+
+ AssertLinter 'uv',
+ \ ale#Escape('uv')
+ \ . ' run bandit'
+ \ . b:bandit_flags
+ \ . ' -'
+
Execute(The bandit command callback should add .bandit by default):
silent execute 'file ' . fnameescape(g:dir . '/../test-files/python/with_bandit/namespace/foo/bar.py')