We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c89036 commit 4383f1eCopy full SHA for 4383f1e
test/plugins/test_importmagic_lint.py
@@ -55,10 +55,10 @@ def test_importmagic_actions(config):
55
56
try:
57
name, doc = temp_document(DOC)
58
- action = importmagic_lint.pyls_code_actions(config, doc, context)[0]
+ actions = importmagic_lint.pyls_code_actions(config, doc, context)
59
+ action = [a for a in actions if a['title'] == 'Import "listdir" from "os"'][0]
60
arguments = action['arguments']
61
- assert action['title'] == 'Import "listdir" from "os"'
62
assert action['command'] == 'importmagic.addimport'
63
assert arguments['startLine'] == 1
64
assert arguments['endLine'] == 1
0 commit comments