1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 09:30:04 +08:00
SpaceVim/bundle/defx.nvim/test/rplugin/python3/defx/test_defx.py
2020-06-13 14:06:35 +08:00

18 lines
339 B
Python

import pytest
from defx.view import View
from pynvim import Nvim
from unittest.mock import create_autospec
from unittest.mock import MagicMock
def test_view():
vim = create_autospec(Nvim)
vim.channel_id = 0
vim.vars = {}
vim.call.return_value = ''
vim.current = MagicMock()
context = {}
defx = View(vim, 0)