Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
tomv564 committed Oct 29, 2018
1 parent a595d6a commit 0e7ec60
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,15 @@
TEST_LINE_WITHOUT_LINE = 'main.py: error: "Request" has no attribute "id"'


class FakeConfig(object):
def plugin_settings(self, plugin, document_path=None):
return {}


def test_plugin():
config = FakeConfig()
doc = Document(DOC_URI, DOC_TYPE_ERR)
diags = plugin.pyls_lint(doc)
diags = plugin.pyls_lint(config, doc)

assert len(diags) == 1
diag = diags[0]
Expand Down

0 comments on commit 0e7ec60

Please sign in to comment.