test_host   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A test_host_clientinfo() 0 6 1
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