mock.call.eval

Here are the examples of the python api mock.call.eval taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

Example 1

Project: ensime-vim Source File: test_editor.py
Function: editor
@pytest.fixture
def editor(vim):
    mockeditor = Editor(vim)
    assert vim.mock_calls == [call.eval("has('nvim')")]

    vim.reset_mock()  # Clear above constructor vim calls from call list
    return mockeditor