fix(ci): var shadowing and proper mocking
This commit is contained in:
parent
fdc1441fa3
commit
07756d5da8
1 changed files with 10 additions and 0 deletions
|
|
@ -45,7 +45,17 @@ describe('cp.scrape', function()
|
|||
}
|
||||
end
|
||||
|
||||
local mock_utils = {
|
||||
setup_python_env = function()
|
||||
return true
|
||||
end,
|
||||
get_plugin_path = function()
|
||||
return '/test/plugin/path'
|
||||
end,
|
||||
}
|
||||
|
||||
package.loaded['cp.cache'] = mock_cache
|
||||
package.loaded['cp.utils'] = mock_utils
|
||||
scrape = require('cp.scrape')
|
||||
|
||||
local original_fn = vim.fn
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue