fix(ci): add contest to mock

This commit is contained in:
Barrett Ruth 2025-09-19 00:33:21 -04:00
parent e904a746d3
commit 41f1d4124a

View file

@ -72,10 +72,16 @@ describe('cp test panel', function()
package.loaded['cp.test'] = mock_test_module
mock_problem_module = {
create_context = function()
create_context = function(contest, contest_id, problem_id, config, language)
return {
contest = contest or 'atcoder',
contest_id = contest_id or 'abc123',
problem_id = problem_id or 'a',
source_file = 'test.cpp',
binary_file = 'build/test.run',
input_file = 'io/test.cpin',
output_file = 'io/test.cpout',
expected_file = 'io/test.expected',
problem_name = 'test',
}
end,