Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
Increased coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
viniarck committed Jan 6, 2019
1 parent 99f2e98 commit 65a246c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions system_tests/test_demo_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ def test_is_running(self, spawn_demoplugin):
assert os.path.exists(f_log)
assert pid

def test_manifest_exists(self, spawn_demoplugin):
"""Make sure the plugin is generating the manifest vim file."""
manifest_file = "~/.config/nvim/settings/demo-plugin.vim"
assert os.path.exists(os.path.expanduser(manifest_file))

def test_started(self, spawn_demoplugin):
"""Check if the plugin properly started."""
f_log = os.environ.get("NVIMHOST_LOG_FILE")
Expand Down Expand Up @@ -107,7 +112,7 @@ def test_kill(self, spawn_demoplugin):

@pytest.fixture(scope="session")
def get_nvim():
pass

nvim_addr = os.environ.get("NVIM_LISTEN_ADDRESS")
assert nvim_addr
nvim = pynvim.attach("socket", path=nvim_addr)
Expand All @@ -119,9 +124,8 @@ class TestDemoPluginFunctions(object):

"""
TestDemoPluginFunctions.
This test suite tests all demo-plugin funtions without forcing any
bootstrap mechanism, by leveraging pynvim official
client (since it's super stable).
This test suite tests all demo-plugin funtions by leveraging pynvim
official client (since it's super stable).
"""

def test_greet(self, get_nvim):
Expand Down

0 comments on commit 65a246c

Please sign in to comment.