summaryrefslogtreecommitdiff
path: root/test/linter/test_pyright.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/linter/test_pyright.vader')
-rw-r--r--test/linter/test_pyright.vader8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/linter/test_pyright.vader b/test/linter/test_pyright.vader
index 95dfd853..14e8c142 100644
--- a/test/linter/test_pyright.vader
+++ b/test/linter/test_pyright.vader
@@ -10,6 +10,8 @@ After:
call ale#assert#TearDownLinterTest()
Execute(The command callback should return the correct default string):
+ call ale#test#SetFilename('./foo.py')
+
AssertLinter
\ 'pyright-langserver',
\ ale#Escape('pyright-langserver') . ' --stdio'
@@ -30,6 +32,12 @@ Execute(The default configuration should be mostly empty):
AssertLSPConfig {'python': {}}
+Execute(The cwd and project root should be detected correctly):
+ call ale#test#SetFilename('../test-files/python/with_virtualenv/subdir/foo/bar.py')
+
+ AssertLinterCwd ale#test#GetFilename('../test-files/python/with_virtualenv/subdir')
+ AssertLSPProject ale#test#GetFilename('../test-files/python/with_virtualenv/subdir')
+
Execute(virtualenv paths should be set in configuration by default):
call ale#test#SetFilename('../test-files/python/with_virtualenv/subdir/foo/bar.py')