| Total Complexity | 1 |
| Total Lines | 12 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | # -*- coding: utf-8 -*- |
||
| 2 | |||
| 3 | from pynvim.plugin.host import Host, host_method_spec |
||
| 4 | |||
| 5 | |||
| 6 | def test_host_clientinfo(vim): |
||
| 7 | h = Host(vim) |
||
| 8 | assert h._request_handlers.keys() == host_method_spec.keys() |
||
| 9 | assert 'remote' == vim.api.get_chan_info(vim.channel_id)['client']['type'] |
||
| 10 | h._load([]) |
||
| 11 | assert 'host' == vim.api.get_chan_info(vim.channel_id)['client']['type'] |
||
| 12 |