mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-24 05:36:41 +02:00
tests: test_util: Use MockVim from tests.base instead of redefining
This commit is contained in:
parent
4f15f8a8fc
commit
35bdae5a05
1 changed files with 1 additions and 6 deletions
|
@ -1,10 +1,5 @@
|
|||
import sys
|
||||
|
||||
# Mock vim to test vim-nonrelated functions
|
||||
class MockVim(object):
|
||||
|
||||
def eval(*args, **kwargs):
|
||||
return 42
|
||||
from tests.base import MockVim
|
||||
|
||||
sys.modules['vim'] = MockVim()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue