diff options
Diffstat (limited to 'test/linter/test_pylsp.vader')
-rw-r--r-- | test/linter/test_pylsp.vader | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/linter/test_pylsp.vader b/test/linter/test_pylsp.vader index 290fdbf3..34cc30c6 100644 --- a/test/linter/test_pylsp.vader +++ b/test/linter/test_pylsp.vader @@ -10,6 +10,8 @@ After: call ale#assert#TearDownLinterTest() Execute(The pylsp command callback should return default string): + call ale#test#SetFilename('./foo.py') + AssertLinter 'pylsp', ale#Escape('pylsp') Execute(The pylsp executable should be configurable): @@ -22,6 +24,12 @@ Execute(The pylsp command callback should let you set options): AssertLinter 'pylsp', ale#Escape('pylsp') . ' --some-option' +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(The pylsp executable should be run from the virtualenv path): call ale#test#SetFilename('../test-files/python/with_virtualenv/subdir/foo/bar.py') |