fix(test): typing
This commit is contained in:
parent
101062cb48
commit
87f9439607
2 changed files with 7 additions and 1 deletions
|
|
@ -62,9 +62,11 @@ describe('Panel integration', function()
|
|||
state.set_problem_id('b')
|
||||
|
||||
local problem = require('cp.problem')
|
||||
local ctx = problem.create_context('codeforces', '2146', 'b', {
|
||||
local config_module = require('cp.config')
|
||||
local processed_config = config_module.setup({
|
||||
contests = { codeforces = { cpp = { extension = 'cpp' } } },
|
||||
})
|
||||
local ctx = problem.create_context('codeforces', '2146', 'b', processed_config)
|
||||
|
||||
assert.has_no_errors(function()
|
||||
run.load_test_cases(ctx, state)
|
||||
|
|
|
|||
|
|
@ -158,6 +158,10 @@ describe('cp.picker', function()
|
|||
end,
|
||||
}
|
||||
|
||||
package.loaded['cp.pickers.init'] = nil
|
||||
package.loaded['cp.pickers'] = nil
|
||||
picker = require('cp.pickers')
|
||||
|
||||
local problems = picker.get_problems_for_contest('test_platform', 'test_contest')
|
||||
assert.is_table(problems)
|
||||
assert.equals(1, #problems)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue