fix(test): mock caches and everything else
This commit is contained in:
parent
1822714a0c
commit
373e7f6e76
5 changed files with 51 additions and 5 deletions
|
|
@ -68,6 +68,22 @@ describe('cp.picker', function()
|
|||
end)
|
||||
|
||||
it('returns contest list when scraper succeeds', function()
|
||||
local cache = require('cp.cache')
|
||||
local utils = require('cp.utils')
|
||||
|
||||
cache.load = function() end
|
||||
cache.get_contest_list = function()
|
||||
return nil
|
||||
end
|
||||
cache.set_contest_list = function() end
|
||||
|
||||
utils.setup_python_env = function()
|
||||
return true
|
||||
end
|
||||
utils.get_plugin_path = function()
|
||||
return '/test/path'
|
||||
end
|
||||
|
||||
vim.system = function(_, _)
|
||||
return {
|
||||
wait = function()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue