MCPcopy
hub / github.com/sublimelsp/LSP / test_m_workspace_configuration

Method test_m_workspace_configuration

tests/test_server_requests.py:44–55  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

42 yield from verify(self, "workspace/workspaceFolders", {}, expected_output)
43
44 def test_m_workspace_configuration(self) -> Generator:
45 self.session.config.settings.set("foo.bar", "$hello")
46 self.session.config.settings.set("foo.baz", "$world")
47 self.session.config.settings.set("foo.a", 1)
48 self.session.config.settings.set("foo.b", None)
49 self.session.config.settings.set("foo.c", ["asdf ${hello} ${world}"])
50 self.session._variables.update({"hello": "X", "world": "Y"})
51 method = "workspace/configuration"
52 params = {"items": [{"section": "foo"}]}
53 expected_output = [{"bar": "X", "baz": "Y", "a": 1, "b": None, "c": ["asdf X Y"]}]
54 yield from verify(self, method, params, expected_output)
55 self.session.config.settings.clear()
56
57 def test_m_client_registerCapability(self) -> Generator:
58 yield from verify(

Callers

nothing calls this directly

Calls 4

setMethod · 0.80
clearMethod · 0.80
verifyFunction · 0.70
updateMethod · 0.45

Tested by

no test coverage detected