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 3230b43 commit 4bce8a7Copy full SHA for 4bce8a7
tests/test_plugin.py
@@ -1,7 +1,9 @@
1
+import types
2
from pathlib import Path
3
from unittest.mock import Mock
4
5
import black
6
+import pkg_resources
7
import pytest
8
from pyls import uris
9
from pyls.workspace import Document, Workspace
@@ -202,3 +204,13 @@ def test_load_config_defaults():
202
204
"fast": False,
203
205
"skip_string_normalization": False,
206
}
207
+
208
209
+def test_entry_point():
210
+ distribution = pkg_resources.get_distribution("pyls-black")
211
+ entry_point = distribution.get_entry_info("pyls", "pyls_black")
212
213
+ assert entry_point is not None
214
215
+ module = entry_point.load()
216
+ assert isinstance(module, types.ModuleType)
0 commit comments