Skip to content

Commit 0e7ec60

Browse files
committed
Fix test
1 parent a595d6a commit 0e7ec60

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/test_plugin.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,15 @@
1313
TEST_LINE_WITHOUT_LINE = 'main.py: error: "Request" has no attribute "id"'
1414

1515

16+
class FakeConfig(object):
17+
def plugin_settings(self, plugin, document_path=None):
18+
return {}
19+
20+
1621
def test_plugin():
22+
config = FakeConfig()
1723
doc = Document(DOC_URI, DOC_TYPE_ERR)
18-
diags = plugin.pyls_lint(doc)
24+
diags = plugin.pyls_lint(config, doc)
1925

2026
assert len(diags) == 1
2127
diag = diags[0]

0 commit comments

Comments
 (0)