Skip to content

Commit 95684ac

Browse files
committed
Add pyright test
1 parent 4c154a6 commit 95684ac

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

atest/01_Editor.robot

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,13 @@ Less
4343
Markdown
4444
Editor Shows Features for Language Markdown example.md Diagnostics=`Color` is misspelt
4545

46-
Python
46+
Python (pylsp)
4747
${def} = Set Variable xpath:(//span[contains(@class, 'cm-variable')][contains(text(), 'fib')])[last()]
48-
Editor Shows Features for Language Python example.py Diagnostics=multiple spaces after keyword Jump to Definition=${def} Rename=${def}
48+
Editor Shows Features for Server pylsp Python example.py Diagnostics=undefined name 'result' (pyflakes) Jump to Definition=${def} Rename=${def}
49+
50+
Python (pyright)
51+
${def} = Set Variable xpath:(//span[contains(@class, 'cm-variable')][contains(text(), 'fib')])[last()]
52+
Editor Shows Features for Server pyright Python example.py Diagnostics=is not defined (Pyright) Jump to Definition=${def} Rename=${def}
4953

5054
R
5155
${def} = Set Variable xpath:(//span[contains(@class, 'cm-variable')][contains(text(), 'fib')])[last()]
@@ -70,6 +74,12 @@ YAML
7074
Editor Shows Features for Language YAML example.yaml Diagnostics=duplicate key
7175

7276
*** Keywords ***
77+
Editor Shows Features for Server
78+
[Arguments] ${server} ${Language} ${file} &{features}
79+
Configure JupyterLab Plugin
80+
... {"language_servers": {"${server}": {"priority": 10000}}
81+
Editor Shows Features for Language ${Language} ${file} &{features}
82+
7383
Editor Shows Features for Language
7484
[Arguments] ${Language} ${file} &{features}
7585
Prepare File for Editing ${Language} editor ${file}

atest/examples/example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from itertools import (accumulate, chain); accumulate
44

5-
65
# fibs :: Integer :: [Integer]
76
def fibs(n):
87
'''An accumulation of the first n integers in
@@ -27,5 +26,6 @@ def go(ab, _):
2726
print(
2827
'First twenty: ' + repr(
2928
fibs(20)
30-
)
29+
),
30+
result
3131
)

0 commit comments

Comments
 (0)